manager-app/lib/Models/managerContext.dart
2023-12-05 14:38:47 +01:00

25 lines
810 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;
String? host;
String? accessToken;
int? pinCode;
Client? clientAPI;
String? currentRoute;
ConfigurationDTO? selectedConfiguration;
SectionDTO? selectedSection;
bool? isLoading = false;
ManagerAppContext({this.email, this.accessToken, this.currentRoute});
// Implement toString to make it easier to see information about
@override
String toString() {
return 'ManagerAppContext{email: $email, host: $host, token: $accessToken, instanceId: $instanceId, currentRoute: $currentRoute}, selectedConfiguration: $selectedConfiguration, selectedSection: $selectedSection}';
}
}