NotificationOptions constructor

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

Implementation

factory NotificationOptions(
        {NotificationDirection? dir,
        String? lang,
        String? body,
        String? tag,
        String? image,
        String? icon,
        String? badge,
        dynamic vibrate,
        int? timestamp,
        bool? renotify,
        bool? silent,
        bool? requireInteraction,
        dynamic data,
        Iterable<NotificationAction>? actions}) =>
    NotificationOptions._(
        dir: dir?.value ?? NotificationDirection.auto.value,
        lang: lang ?? '',
        body: body ?? '',
        tag: tag ?? '',
        image: image ?? undefined,
        icon: icon ?? undefined,
        badge: badge ?? undefined,
        vibrate: vibrate ?? undefined,
        timestamp: timestamp ?? undefined,
        renotify: renotify ?? false,
        silent: silent ?? false,
        requireInteraction: requireInteraction ?? false,
        data: data ?? undefined,
        actions: actions ?? const []);