2023-03-06 08:29:55 +00:00
|
|
|
part of 'family_bloc.dart';
|
|
|
|
|
|
|
|
abstract class FamilyState extends Equatable {
|
|
|
|
const FamilyState();
|
|
|
|
|
|
|
|
@override
|
|
|
|
List<Object> get props => [];
|
|
|
|
}
|
|
|
|
|
|
|
|
class FamilyInitial extends FamilyState {}
|
|
|
|
|
|
|
|
class FamilyLoaded extends FamilyState{
|
2023-05-11 00:04:53 +00:00
|
|
|
final List<FamilyBackground>? families;
|
2023-03-06 08:29:55 +00:00
|
|
|
const FamilyLoaded({required this.families});
|
|
|
|
|
2023-05-11 00:04:53 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
class DeletedState extends FamilyState {
|
|
|
|
final bool success;
|
|
|
|
const DeletedState({required this.success});
|
2023-03-06 08:29:55 +00:00
|
|
|
@override
|
2023-05-11 00:04:53 +00:00
|
|
|
List<Object> get props => [success];
|
|
|
|
}
|
|
|
|
class FamilyAddedState extends FamilyState{
|
|
|
|
final Map<dynamic,dynamic> response;
|
|
|
|
const FamilyAddedState({required this.response});
|
|
|
|
@override
|
|
|
|
List<Object> get props => [response];
|
|
|
|
}
|
|
|
|
class EmergencyContactEditedState extends FamilyState{
|
|
|
|
final Map<dynamic,dynamic> response;
|
|
|
|
const EmergencyContactEditedState({required this.response});
|
|
|
|
@override
|
|
|
|
List<Object> get props => [response];
|
|
|
|
}
|
|
|
|
class FamilyEditedState extends FamilyState{
|
|
|
|
final Map<dynamic,dynamic> response;
|
|
|
|
const FamilyEditedState({required this.response});
|
|
|
|
@override
|
|
|
|
List<Object> get props => [response];
|
2023-03-06 08:29:55 +00:00
|
|
|
}
|
|
|
|
class FamilyErrorState extends FamilyState{
|
|
|
|
final String message;
|
|
|
|
const FamilyErrorState({required this.message});
|
|
|
|
@override
|
|
|
|
List<Object> get props => [message];
|
|
|
|
}
|
|
|
|
class FamilyLoadingState extends FamilyState{
|
|
|
|
|
|
|
|
}
|