action property
String
get
action
@AvailableInWorkers("service")
The action
read-only property of the NotificationEvent interface
returns the string ID of the notification button the user clicked. This
value returns an empty string if the user clicked the notification
somewhere other than an action button, or the notification does not have a
button. The notification id is set during the creation of the Notification
via the actions array attribute and can't be modified unless the
notification is replaced.
Implementation
external String get action;