manager-app/lib/Models/managerContext.dart
Thomas Fransolet 4818a1af52 Configuration (create, update, del) + Section (create, update, del)
more test to be sure for section but should be ok
2025-05-13 17:12:04 +02:00

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