Last active
March 6, 2023 14:50
-
-
Save harshsoni1110/a504c75a91a7af34ef30a3f8f05ca3a4 to your computer and use it in GitHub Desktop.
NotificationEvent for Flutter.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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