Initial commit: unionflow-mobile-apps
Application Flutter complète (sans build artifacts). Signed-off-by: lions dev Team
This commit is contained in:
52
lib/features/profile/presentation/bloc/profile_state.dart
Normal file
52
lib/features/profile/presentation/bloc/profile_state.dart
Normal file
@@ -0,0 +1,52 @@
|
||||
part of 'profile_bloc.dart';
|
||||
|
||||
abstract class ProfileState extends Equatable {
|
||||
const ProfileState();
|
||||
|
||||
@override
|
||||
List<Object?> get props => [];
|
||||
}
|
||||
|
||||
class ProfileInitial extends ProfileState {
|
||||
const ProfileInitial();
|
||||
}
|
||||
|
||||
class ProfileLoading extends ProfileState {
|
||||
const ProfileLoading();
|
||||
}
|
||||
|
||||
class ProfileLoaded extends ProfileState {
|
||||
final MembreCompletModel membre;
|
||||
const ProfileLoaded(this.membre);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [membre];
|
||||
}
|
||||
|
||||
class ProfileUpdating extends ProfileState {
|
||||
final MembreCompletModel membre;
|
||||
const ProfileUpdating(this.membre);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [membre];
|
||||
}
|
||||
|
||||
class ProfileUpdated extends ProfileState {
|
||||
final MembreCompletModel membre;
|
||||
const ProfileUpdated(this.membre);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [membre];
|
||||
}
|
||||
|
||||
class ProfileError extends ProfileState {
|
||||
final String message;
|
||||
const ProfileError(this.message);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [message];
|
||||
}
|
||||
|
||||
class ProfileNotFound extends ProfileState {
|
||||
const ProfileNotFound();
|
||||
}
|
||||
Reference in New Issue
Block a user