ActionType enum
Defines the notification button's type ActionType.Default Is the default action type, forcing the app to goes foreground. ActionType.SilentAction Do not forces the app to go foreground, but runs on main thread, accept visual elements and can be interrupt if main app gets terminated. ActionType.SilentBackgroundAction Do not forces the app to go foreground and runs on background, not accepting any visual elements. The execution is done on background thread. ActionType.KeepOnTop Fires the respective action without close the notification status bar and don't bring the app to foreground. ActionType.DisabledAction When pressed, the notification just close itself on the tray, without fires any action event. ActionType.DismissAction Behaves as the same way as a user dismissing action, dismissing the respective notification and firing the dismissMethod. Ignores autoDismissible property. ActionType.InputField (Deprecated) When the button is pressed, it opens a dialog shortcut to send an text response.
Values
- Default → const ActionType
-
Is the default action type, forcing the app to goes foreground.
- InputField → const ActionType
-
(Deprecated) When the button is pressed, it opens a dialog shortcut to send an text response.
- DisabledAction → const ActionType
-
When pressed, the notification just close itself on the tray, without being dismissed and without fire any action event.
- KeepOnTop → const ActionType
-
Fires the respective action without close the notification status bar and don't bring the app to foreground.
- SilentAction → const ActionType
-
Do not forces the app to go foreground, runs on main isolate, accept visual elements and can be interrupt if main app gets terminated.
- SilentBackgroundAction → const ActionType
-
Do not forces the app to go foreground and runs on an exclusive dart isolate and do not accept any visual element. The execution is totally apart from app lifecycle and will not be interrupt if the app goes terminated / killed.
- DismissAction → const ActionType
-
Behaves as the same way as a user dismiss action, dismissing the respective notification and firing dismissMethod. Ignores autoDismissible property.
Properties
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
Constants
-
values
→ const List<
ActionType> - A constant List of the values in this enum, in order of their declaration.