DarwinNotificationAction class
Describes the notification action itself.
See the official docs at https://developer.apple.com/documentation/usernotifications/unnotificationaction for more details.
Constructors
-
DarwinNotificationAction.plain(String identifier, String title, {Set<
DarwinNotificationActionOption> options = const <DarwinNotificationActionOption>{}}) -
Creates a
UNNotificationAction
for simple actionsfactory -
DarwinNotificationAction.text(String identifier, String title, {required String buttonTitle, String? placeholder, Set<
DarwinNotificationActionOption> options = const <DarwinNotificationActionOption>{}}) -
Creates a
UNTextInputNotificationAction
to collect user defined input.factory
Properties
-
The localized title of the text input button that is displayed to the
user.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- identifier → String
-
The unique string that your app uses to identify the action.
final
-
options
→ Set<
DarwinNotificationActionOption> -
The behaviors associated with the action.
final
- placeholder → String?
-
The localized placeholder text to display in the text input field.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String
-
The localized string to use as the title of the action.
final
- type → _DarwinNotificationActionType
-
Notification Action type.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited