51 lines
1.0 KiB
Dart
51 lines
1.0 KiB
Dart
|
part of 'user_bloc.dart';
|
||
|
|
||
|
abstract class UserState extends Equatable {
|
||
|
|
||
|
@override
|
||
|
List<Object> get props => [];
|
||
|
}
|
||
|
|
||
|
class UserInitial extends UserState {
|
||
|
UserInitial();
|
||
|
@override
|
||
|
List<Object> get props => [];
|
||
|
}
|
||
|
|
||
|
class UserLoading extends UserState {
|
||
|
final String? message;
|
||
|
UserLoading({this.message});
|
||
|
@override
|
||
|
List<Object> get props => [message!];
|
||
|
}
|
||
|
|
||
|
class SplashScreen extends UserState {
|
||
|
@override
|
||
|
List<Object> get props => [];
|
||
|
}
|
||
|
|
||
|
class UserError extends UserState {
|
||
|
final String? message;
|
||
|
UserError({this.message});
|
||
|
@override
|
||
|
List<Object> get props => [];
|
||
|
}
|
||
|
class UserLoggedIn extends UserState{
|
||
|
final UserData? userData;
|
||
|
UserLoggedIn({this.userData});
|
||
|
}
|
||
|
|
||
|
class VersionLoaded extends UserState {
|
||
|
final VersionInfo? versionInfo;
|
||
|
final String? apkVersion;
|
||
|
VersionLoaded({this.versionInfo,this.apkVersion});
|
||
|
@override
|
||
|
List<Object> get props => [versionInfo!];
|
||
|
}
|
||
|
class UuidLoaded extends UserState{
|
||
|
final String uuid;
|
||
|
UuidLoaded({required this.uuid});
|
||
|
@override
|
||
|
List<Object> get props => [uuid];
|
||
|
}
|