AndroidNotificationDetails constructor
- String channelId,
- String channelName,
- String channelDescription,
- {String icon,
- Importance importance = Importance.defaultImportance,
- Priority priority = Priority.defaultPriority,
- StyleInformation styleInformation,
- bool playSound = true,
- AndroidNotificationSound sound,
- bool enableVibration = true,
- Int64List vibrationPattern,
- String groupKey,
- bool setAsGroupSummary,
- GroupAlertBehavior groupAlertBehavior = GroupAlertBehavior.all,
- bool autoCancel = true,
- bool ongoing,
- Color color,
- AndroidBitmap largeIcon,
- bool onlyAlertOnce,
- bool showWhen = true,
- int when,
- bool usesChronometer = false,
- bool channelShowBadge = true,
- bool showProgress = false,
- int maxProgress = 0,
- int progress = 0,
- bool indeterminate = false,
- AndroidNotificationChannelAction channelAction = AndroidNotificationChannelAction.createIfNotExists,
- bool enableLights = false,
- Color ledColor,
- int ledOnMs,
- int ledOffMs,
- String ticker,
- NotificationVisibility visibility,
- int timeoutAfter,
- String category,
- bool fullScreenIntent = false,
- String shortcutId,
- Int32List additionalFlags,
- String subText}
Constructs an instance of AndroidNotificationDetails.
Implementation
const AndroidNotificationDetails(
this.channelId,
this.channelName,
this.channelDescription, {
this.icon,
this.importance = Importance.defaultImportance,
this.priority = Priority.defaultPriority,
this.styleInformation,
this.playSound = true,
this.sound,
this.enableVibration = true,
this.vibrationPattern,
this.groupKey,
this.setAsGroupSummary,
this.groupAlertBehavior = GroupAlertBehavior.all,
this.autoCancel = true,
this.ongoing,
this.color,
this.largeIcon,
this.onlyAlertOnce,
this.showWhen = true,
this.when,
this.usesChronometer = false,
this.channelShowBadge = true,
this.showProgress = false,
this.maxProgress = 0,
this.progress = 0,
this.indeterminate = false,
this.channelAction = AndroidNotificationChannelAction.createIfNotExists,
this.enableLights = false,
this.ledColor,
this.ledOnMs,
this.ledOffMs,
this.ticker,
this.visibility,
this.timeoutAfter,
this.category,
this.fullScreenIntent = false,
this.shortcutId,
this.additionalFlags,
this.subText,
});