anitrack/lib/src/ui/bloc/details_event.dart

34 lines
758 B
Dart

part of 'details_bloc.dart';
abstract class DetailsEvent {}
class AnimeDetailsRequestedEvent extends DetailsEvent {
AnimeDetailsRequestedEvent(this.anime);
/// The anime to show details about
final AnimeTrackingData anime;
}
class MangaDetailsRequestedEvent extends DetailsEvent {
MangaDetailsRequestedEvent(this.manga);
/// The manga to show details about
final MangaTrackingData manga;
}
class DetailsUpdatedEvent extends DetailsEvent {
DetailsUpdatedEvent(this.data);
final TrackingMedium data;
}
class ItemRemovedEvent extends DetailsEvent {
ItemRemovedEvent(this.id, this.trackingType);
/// The ID of the item to be removed
final String id;
/// The type of medium of the item
final TrackingMediumType trackingType;
}