AndroidNotificationOptions constructor
AndroidNotificationOptions({
- int? id,
- required String channelId,
- required String channelName,
- String? channelDescription,
- NotificationChannelImportance channelImportance = NotificationChannelImportance.DEFAULT,
- NotificationPriority priority = NotificationPriority.DEFAULT,
- bool enableVibration = false,
- bool playSound = false,
- bool showWhen = false,
- bool isSticky = true,
- NotificationVisibility visibility = NotificationVisibility.VISIBILITY_PUBLIC,
- NotificationIconData? iconData,
- List<
NotificationButton> ? buttons,
Constructs an instance of AndroidNotificationOptions.
Implementation
AndroidNotificationOptions({
this.id,
required this.channelId,
required this.channelName,
this.channelDescription,
this.channelImportance = NotificationChannelImportance.DEFAULT,
this.priority = NotificationPriority.DEFAULT,
this.enableVibration = false,
this.playSound = false,
this.showWhen = false,
this.isSticky = true,
this.visibility = NotificationVisibility.VISIBILITY_PUBLIC,
this.iconData,
this.buttons,
}) : assert(channelId.isNotEmpty),
assert(channelName.isNotEmpty),
assert((buttons?.length ?? 0) < 4);