2020-01-04 21:31:52 +02:00
|
|
|
abstract class AuthState {}
|
|
|
|
|
|
|
|
class AuthenticationStateInitial extends AuthState {}
|
|
|
|
|
|
|
|
class AuthenticationInProgress extends AuthState {}
|
|
|
|
|
|
|
|
class AuthenticatedSuccessfully extends AuthState {}
|
|
|
|
|
|
|
|
class AuthenticationFailure extends AuthState {
|
|
|
|
AuthenticationFailure({this.error});
|
|
|
|
|
|
|
|
final String error;
|
2020-01-08 14:26:34 +02:00
|
|
|
}
|
2020-01-04 21:31:52 +02:00
|
|
|
|
2020-01-08 14:26:34 +02:00
|
|
|
class AuthenticationBanned extends AuthState {
|
2020-01-04 21:31:52 +02:00
|
|
|
AuthenticationBanned({this.error});
|
2020-01-08 14:26:34 +02:00
|
|
|
|
|
|
|
final String error;
|
2020-01-04 21:31:52 +02:00
|
|
|
}
|
|
|
|
|