LocationBloc constructor

LocationBloc({
  1. required LocationRepository locationRepository,
})

Implementation

LocationBloc({
  required this.locationRepository,
}) : super(LocationState()) {
  on<GetLocation>(_getLocationEvent);
}