AndroidNotificationAction constructor

const AndroidNotificationAction(
  1. String id,
  2. String title, {
  3. Color? titleColor,
  4. AndroidBitmap<Object>? icon,
  5. bool contextual = false,
  6. bool showsUserInterface = false,
  7. bool allowGeneratedReplies = false,
  8. List<AndroidNotificationActionInput> inputs = const <AndroidNotificationActionInput>[],
  9. bool cancelNotification = true,
})

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,
});