NotificationOptions constructor
NotificationOptions({})
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 []);