LocationBloc constructor
LocationBloc({
- required Location location,
Implementation
LocationBloc({required this.location}) : super(const LocationState()) {
on<LoadLocationEvent>(_handleLoadLocation);
on<RequestLocationPermissionEvent>(_handleRequestPermission);
on<RequestLocationServiceEvent>(_handleRequestService);
on<LocationSetLatLngEvent>(_handleSetLatLng);
on<ListenLocationEvent>(_handleListenLocation);
}