MBPushMessage constructor

MBPushMessage({
  1. required String id,
  2. required String title,
  3. required String body,
  4. int? badge,
  5. String? sound,
  6. String? launchImage,
  7. Map<String, dynamic>? userInfo,
  8. required bool sent,
})

Initializes a new push message with the data given. @param id The id of the push message. @param title The title of the push message. @param body The body of the push message. @param badge The push notification badge value. @param sound The push notification custom sound. @param launchImage The push notification launch image. @param userInfo Additional data for push notifications. @param sent If the push notification was sent or not by the server.

Implementation

MBPushMessage({
  required this.id,
  required this.title,
  required this.body,
  this.badge,
  this.sound,
  this.launchImage,
  this.userInfo,
  required this.sent,
});