28 lines
575 B
Dart
28 lines
575 B
Dart
part of 'sos_bloc.dart';
|
|
|
|
abstract class SosState extends Equatable {
|
|
const SosState();
|
|
|
|
@override
|
|
List<Object> get props => [];
|
|
}
|
|
|
|
class SosInitial extends SosState {}
|
|
|
|
class UserLocationLoaded extends SosState {
|
|
final LocationData locationData;
|
|
const UserLocationLoaded({required this.locationData});
|
|
@override
|
|
List<Object> get props => [locationData];
|
|
}
|
|
class ErrorState extends SosState{
|
|
final String message;
|
|
const ErrorState({required this.message});
|
|
@override
|
|
List<Object> get props => [message];
|
|
}
|
|
|
|
class LoadingState extends SosState{
|
|
|
|
}
|