AndroidNotificationOptions constructor
AndroidNotificationOptions({
- @Deprecated('Use startService(serviceId) instead.') int? id,
- required String channelId,
- required String channelName,
- String? channelDescription,
- NotificationChannelImportance channelImportance = NotificationChannelImportance.LOW,
- NotificationPriority priority = NotificationPriority.LOW,
- bool enableVibration = false,
- bool playSound = false,
- bool showWhen = false,
- bool showBadge = false,
- bool onlyAlertOnce = false,
- NotificationVisibility visibility = NotificationVisibility.VISIBILITY_PUBLIC,
Constructs an instance of AndroidNotificationOptions.
Implementation
AndroidNotificationOptions({
@Deprecated('Use startService(serviceId) instead.') this.id,
required this.channelId,
required this.channelName,
this.channelDescription,
this.channelImportance = NotificationChannelImportance.LOW,
this.priority = NotificationPriority.LOW,
this.enableVibration = false,
this.playSound = false,
this.showWhen = false,
this.showBadge = false,
this.onlyAlertOnce = false,
this.visibility = NotificationVisibility.VISIBILITY_PUBLIC,
}) : assert(channelId.isNotEmpty),
assert(channelName.isNotEmpty);