NotificationPayload constructor

const NotificationPayload({
  1. String? title,
  2. String? body,
  3. String? imageUrl,
  4. String? route,
  5. Map<String, dynamic> data = const {},
  6. List<NotificationAction> actions = const [],
  7. int? id,
  8. String? channelId,
  9. String? category,
  10. String? sound,
  11. int? badge,
  12. int? ttl,
  13. String? priority,
})

Implementation

const NotificationPayload({
  this.title,
  this.body,
  this.imageUrl,
  this.route,
  this.data = const {},
  this.actions = const [],
  this.id,
  this.channelId,
  this.category,
  this.sound,
  this.badge,
  this.ttl,
  this.priority,
});