Files
workavia-mail-front/lib/features/login/domain/state/authentication_user_state.dart
T
dab246 8be3eb53e9 TF-1963 Sync handle exception at data and domain layer
(cherry picked from commit 591388e01fc4fc4c357bdb40a44dac0377dc9fe5)
2023-07-07 22:45:26 +07:00

26 lines
585 B
Dart

import 'package:core/core.dart';
import 'package:model/model.dart';
class AuthenticationUserLoading extends LoadingState {
AuthenticationUserLoading();
@override
List<Object> get props => [];
}
class AuthenticationUserSuccess extends UIState {
final UserProfile userProfile;
AuthenticationUserSuccess(this.userProfile);
@override
List<Object> get props => [userProfile];
}
class AuthenticationUserFailure extends FeatureFailure {
AuthenticationUserFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
}