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,
);
}