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,
- NotificationVisibility visibility = NotificationVisibility.VISIBILITY_PUBLIC,
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.visibility = NotificationVisibility.VISIBILITY_PUBLIC,
}) : assert(channelId.isNotEmpty),
assert(channelName.isNotEmpty);