23 lines
711 B
Dart
23 lines
711 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:manager_app/client.dart';
|
|
import 'package:managerapi/api.dart';
|
|
|
|
|
|
class ManagerAppContext with ChangeNotifier{
|
|
String email;
|
|
String instanceId;
|
|
TokenDTO token;
|
|
Client clientAPI;
|
|
String currentRoute;
|
|
ConfigurationDTO selectedConfiguration;
|
|
SectionDTO selectedSection;
|
|
bool isLoading = false;
|
|
|
|
ManagerAppContext({this.email, this.token, this.currentRoute});
|
|
|
|
// Implement toString to make it easier to see information about
|
|
@override
|
|
String toString() {
|
|
return 'ManagerAppContext{email: $email, token: $token, currentRoute: $currentRoute}, selectedConfiguration: $selectedConfiguration, selectedSection: $selectedSection}';
|
|
}
|
|
} |