Skip to content

Instantly share code, notes, and snippets.

@harshsoni1110
Last active March 6, 2023 14:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harshsoni1110/a504c75a91a7af34ef30a3f8f05ca3a4 to your computer and use it in GitHub Desktop.
Save harshsoni1110/a504c75a91a7af34ef30a3f8f05ca3a4 to your computer and use it in GitHub Desktop.
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