MapboxGlBloc constructor
MapboxGlBloc()
Implementation
MapboxGlBloc() : super(MapboxGlInitial()) {
on<ChangeMapStyle>((event, emit) {
final index = (event.currentIndex + 1) % mapboxStyles.length;
emit(
OnChangeMapStyle(style: mapboxStyles[index]),
);
});
}