of static method

Notification of({
  1. required String? title,
  2. String? subtitle,
  3. String? body,
  4. Uri? imageUrl,
})

Implementation

static Notification of({
  required String? title,
  String? subtitle,
  String? body,
  Uri? imageUrl
  }) {
  final self = Notification(<String, dynamic>{}, mtype: NotificationRef, update: true);
  if (title != null) self.title = title;
  if (subtitle != null) self.subtitle = subtitle;
  if (body != null) self.body = body;
  if (imageUrl != null) self.imageUrl = imageUrl;
  return self;
}