AndroidNotificationAction constructor
const
AndroidNotificationAction(
- String id,
- String title, {
- Color? titleColor,
- AndroidBitmap<
Object> ? icon, - bool contextual = false,
- bool showsUserInterface = false,
- bool allowGeneratedReplies = false,
- List<
AndroidNotificationActionInput> inputs = const <AndroidNotificationActionInput>[], - bool cancelNotification = true,
- SemanticAction semanticAction = SemanticAction.none,
- bool invisible = false,
Constructs a AndroidNotificationAction object. The platform will create
this object using Action.Builder
. See the offical docs
https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Action.Builder?hl=en
for details.
Implementation
const AndroidNotificationAction(
this.id,
this.title, {
this.titleColor,
this.icon,
this.contextual = false,
this.showsUserInterface = false,
this.allowGeneratedReplies = false,
this.inputs = const <AndroidNotificationActionInput>[],
this.cancelNotification = true,
this.semanticAction = SemanticAction.none,
this.invisible = false,
});