NotificationPayload constructor

const NotificationPayload({
  1. required int id,
  2. required String title,
  3. required String body,
  4. required String channelId,
  5. Map<String, dynamic> data = const {},
  6. String? soundName,
  7. bool silent = false,
})

Creates the content and display options for a local notification.

Implementation

const NotificationPayload({
  required this.id,
  required this.title,
  required this.body,
  required this.channelId,
  this.data = const {},
  this.soundName,
  this.silent = false,
});