ログインをメアドに変更
This commit is contained in:
@ -12,6 +12,9 @@ class LogManager {
|
||||
List<String> _logs = [];
|
||||
List<VoidCallback> _listeners = [];
|
||||
|
||||
List<String> _operationLogs = [];
|
||||
List<String> get operationLogs => _operationLogs;
|
||||
|
||||
List<String> get logs => _logs;
|
||||
|
||||
void addLog(String log) {
|
||||
@ -24,6 +27,16 @@ class LogManager {
|
||||
_notifyListeners(); // Notify all listeners
|
||||
}
|
||||
|
||||
void addOperationLog(String log) {
|
||||
_operationLogs.add(log);
|
||||
_notifyListeners();
|
||||
}
|
||||
|
||||
void clearOperationLogs() {
|
||||
_operationLogs.clear();
|
||||
_notifyListeners();
|
||||
}
|
||||
|
||||
void addListener(VoidCallback listener) {
|
||||
_listeners.add(listener);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user