Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

class NotificationState extends Equatable {
const NotificationState();
@override
List<Object> get props => [];
}
class StartUpNotificationState extends NotificationState {}
class IndexedNotification extends NotificationState {
@harshsoni1110
harshsoni1110 / NotificationEvent.dart
Last active March 6, 2023 14:50
NotificationEvent for Flutter.
class NotificationEvent {
//carries the payload sent for notification
final String payload;
const NotificationEvent(this.payload);
}
class NotificationErrorEvent extends NotificationEvent {