NotificationButtonData class

When there are buttons in the notification they are accessible through callbacks. For every button there would be an object in the callback notification data object. And also when a button is clicked, it's id and text will be passes separately in onNotificationButtonClicked callback.

Constructors

NotificationButtonData.create(String _text, int _id)

Properties

hashCode int
The hash code for this object.
no setterinherited
id int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
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.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromJsonList(dynamic json) List<NotificationButtonData?>?
fromJsonString(dynamic json) NotificationButtonData?
fromMap(dynamic data) NotificationButtonData?