Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
NotificationEvent for Flutter.
class NotificationEvent {
//carries the payload sent for notification
final String payload;
const NotificationEvent(this.payload);
}
class NotificationErrorEvent extends NotificationEvent {
final String error;
const NotificationErrorEvent(this.error) : super(null);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment