NotificationAction constructor

const NotificationAction({
  1. required String id,
  2. required String title,
  3. String? titleColor,
  4. String? icon,
  5. List<NotificationActionInput> inputs = const <NotificationActionInput>[],
  6. bool contextual = false,
  7. bool authenticationRequired = false,
  8. bool destructive = false,
  9. bool showsUserInterface = false,
  10. bool allowInBackground = true,
  11. String? payload,
})

Creates a notification action.

Implementation

const NotificationAction({
  required this.id,
  required this.title,
  this.titleColor,
  this.icon,
  this.inputs = const <NotificationActionInput>[],
  this.contextual = false,
  this.authenticationRequired = false,
  this.destructive = false,
  this.showsUserInterface = false,
  this.allowInBackground = true,
  this.payload,
});