Notification constructor

const Notification({
  1. required String title,
  2. String? body,
  3. NotificationType type = NotificationType.info,
  4. IconData? icon,
  5. List<NotificationAction> actions = const <NotificationAction>[],
  6. String? id,
})

Implementation

const Notification({
  required this.title,
  this.body,
  this.type = NotificationType.info,
  this.icon,
  this.actions = const <NotificationAction>[],
  this.id,
});