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? _title, String? _icon)

Properties

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

fromList(dynamic buttons) List<NotificationButtonData>
fromMap(dynamic data) NotificationButtonData?