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