TF-1074 Handle go to path /login

This commit is contained in:
dab246
2022-10-25 14:25:12 +07:00
committed by Dat H. Pham
parent a32bfe35de
commit 0ee990262f
21 changed files with 315 additions and 171 deletions
@@ -1,17 +1,24 @@
import 'package:core/core.dart';
import 'package:model/model.dart';
class AuthenticationUserViewState extends UIState {
class AuthenticationUserLoading extends LoadingState {
AuthenticationUserLoading();
@override
List<Object> get props => [];
}
class AuthenticationUserSuccess extends UIState {
final UserProfile userProfile;
AuthenticationUserViewState(this.userProfile);
AuthenticationUserSuccess(this.userProfile);
@override
List<Object> get props => [userProfile];
}
class AuthenticationUserFailure extends FeatureFailure {
final exception;
final dynamic exception;
AuthenticationUserFailure(this.exception);