e_receipt_mobile/lib/presentation/auth/logout_state.dart
Kyaw Khant Win 4ee6b709d2 done
2026-04-02 00:28:59 +06:30

25 lines
482 B
Dart

import 'package:flutter/foundation.dart';
@immutable
class LogoutState {
const LogoutState({
this.isLoading = false,
this.lastError,
});
final bool isLoading;
final Object? lastError;
LogoutState copyWith({
bool? isLoading,
Object? lastError,
bool clearError = false,
}) {
return LogoutState(
isLoading: isLoading ?? this.isLoading,
lastError: clearError ? null : lastError ?? this.lastError,
);
}
}