JSNotificationAction class

Wrapper object for NotificationAction

Implemented types

Constructors

JSNotificationAction.new({required String action, required String title, String? icon})
const
JSNotificationAction.fromAction(String action, {bool capitalize = true})
factory
JSNotificationAction.fromTitle(String title, {bool transformToLowerCase = true})
factory
JSNotificationAction.simpleWithIcon(String title, String icon)
factory

Properties

action String
See: https://developer.mozilla.org/en-US/docs/Web/API/Notification/actions#action
final
hashCode int
The hash code for this object.
no setterinherited
icon String?
See: https://developer.mozilla.org/en-US/docs/Web/API/Notification/actions#icon
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String
See: https://developer.mozilla.org/en-US/docs/Web/API/Notification/actions#title
final

Methods

copyWith({String? action, String? title, String? icon}) JSNotificationAction
copyWithSelf(JSNotificationAction other) JSNotificationAction
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

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