25 lines
793 B
Dart
25 lines
793 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:manager_app/client.dart';
|
|
import 'package:manager_api_new/api.dart';
|
|
|
|
|
|
class ManagerAppContext with ChangeNotifier{
|
|
String? email;
|
|
String? instanceId;
|
|
InstanceDTO? instanceDTO;
|
|
String? host;
|
|
String? accessToken;
|
|
String? pinCode;
|
|
Client? clientAPI;
|
|
ConfigurationDTO? selectedConfiguration;
|
|
SectionDTO? selectedSection;
|
|
bool? isLoading = false;
|
|
|
|
ManagerAppContext({this.email, this.accessToken});
|
|
|
|
// Implement toString to make it easier to see information about
|
|
@override
|
|
String toString() {
|
|
return 'ManagerAppContext{email: $email, host: $host, token: $accessToken, instanceId: $instanceId, instance: $instanceDTO}, selectedConfiguration: $selectedConfiguration, selectedSection: $selectedSection}';
|
|
}
|
|
} |