AlbumComponentBloc constructor

AlbumComponentBloc({
  1. AlbumRepository? albumRepository,
})

Implementation

AlbumComponentBloc({this.albumRepository})
    : super(AlbumComponentUninitialized()) {
  on<FetchAlbumComponent>((event, emit) {
    _mapLoadAlbumComponentUpdateToState(event.id!);
  });
  on<AlbumComponentUpdated>((event, emit) {
    emit(AlbumComponentLoaded(value: event.value));
  });
}