manager-app/lib/Models/managerContext.dart
2023-04-01 16:52:13 +02:00

24 lines
794 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;
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}';
}
}