NotificationOptions constructor

NotificationOptions({
  1. List<NotificationAction>? actions,
  2. String? badge,
  3. String? body,
  4. dynamic data,
  5. NotificationDirection? dir,
  6. String? icon,
  7. String? image,
  8. String? lang,
  9. bool? renotify,
  10. bool? requireInteraction,
  11. bool? silent,
  12. String? tag,
  13. int? timestamp,
  14. Object? vibrate,
})

Implementation

factory NotificationOptions({
  _i2.List<_i3.NotificationAction>? actions,
  _i2.String? badge,
  _i2.String? body,
  _i2.dynamic data,
  _i3.NotificationDirection? dir,
  _i2.String? icon,
  _i2.String? image,
  _i2.String? lang,
  _i2.bool? renotify,
  _i2.bool? requireInteraction,
  _i2.bool? silent,
  _i2.String? tag,
  _i2.int? timestamp,
  _i2.Object? vibrate,
}) =>
    NotificationOptions._(
      actions: actions,
      badge: badge,
      body: body,
      data: data,
      dir: dir?.name ?? _i6.undefined,
      icon: icon,
      image: image,
      lang: lang,
      renotify: renotify,
      requireInteraction: requireInteraction,
      silent: silent ?? _i6.undefined,
      tag: tag,
      timestamp: timestamp,
      vibrate: vibrate ?? _i6.undefined,
    );