NotificationMessage class
Constructors
-
NotificationMessage.fromCustomTemplate(String id, {Map<String, dynamic> payload = const {}, String? launch, String? group})
-
crete NotificationMessage object when you want to send notificaation with your own template
-
NotificationMessage.fromJson(Map<String, dynamic> json)
-
-
NotificationMessage.fromPluginTemplate(String id, String title, String body, {String? image, Map<String, dynamic> payload = const {}, String? launch, String? largeImage, String? group})
-
crete NotificationMessage object when you want to send notificaation with plugin template
Properties
-
body
→ String?
-
final
-
group
→ String?
-
Gets or sets the group identifier for the notification.
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
id
→ String
-
Gets or sets the unique identifier of this notification within the notification Group.
final
-
image
→ String?
-
Thumbnail next to notification text
final
-
largeImage
→ String?
-
Large image at the bottom of the notification text
final
-
launch
→ String?
-
A string that is passed to the application when it is activated by the toast. The format and contents of this string are defined by the app for its own use. When the user taps or clicks the toast to launch its associated app, the launch string provides the context to the app that allows it to show the user a view relevant to the toast content, rather than launching in its default way.
final
-
methodNmae
→ String
-
no setter
-
payload
→ Map<String, dynamic>
-
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
temolateType
→ TemplateType
-
final
-
title
→ String?
-
final
-
toJs
→ Map<String, dynamic>
-
no setter
-
toJson
→ Map<String, dynamic>
-
no setter
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited