GpsBloc constructor
GpsBloc()
Implementation
GpsBloc()
: super(const GpsState(
isGpsEnabled: false, isGpsPermissionGranted: false)) {
on<GpsAndPermissionEvent>((event, emit) => emit(state.copyWith(
isGpsEnabled: event.isGpsEnable,
isGpsPermissionGranted: event.isGpsPermissionGranted)));
_init();
}