cake_wallet/lib/core/auth_state.dart

21 lines
433 B
Dart
Raw Permalink Normal View History

2020-01-04 19:31:52 +00:00
abstract class AuthState {}
class AuthenticationStateInitial extends AuthState {}
class AuthenticationInProgress extends AuthState {}
class AuthenticatedSuccessfully extends AuthState {}
class AuthenticationFailure extends AuthState {
2022-10-12 17:09:57 +00:00
AuthenticationFailure({required this.error});
2020-01-04 19:31:52 +00:00
final String error;
2020-01-08 12:26:34 +00:00
}
2020-01-04 19:31:52 +00:00
2020-01-08 12:26:34 +00:00
class AuthenticationBanned extends AuthState {
2022-10-12 17:09:57 +00:00
AuthenticationBanned({required this.error});
2020-01-08 12:26:34 +00:00
final String error;
2020-01-04 19:31:52 +00:00
}