AndroidNotificationDetails constructor
const
AndroidNotificationDetails(
- 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 = false,
- GroupAlertBehavior groupAlertBehavior = GroupAlertBehavior.all,
- bool autoCancel = true,
- bool ongoing = false,
- bool silent = false,
- Color? color,
- AndroidBitmap<
Object> ? largeIcon, - bool onlyAlertOnce = false,
- bool showWhen = true,
- int? when,
- bool usesChronometer = false,
- bool chronometerCountDown = 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,
- AndroidNotificationCategory? category,
- bool fullScreenIntent = false,
- String? shortcutId,
- Int32List? additionalFlags,
- String? subText,
- String? tag,
- List<
AndroidNotificationAction> ? actions, - bool colorized = false,
- int? number,
- AudioAttributesUsage audioAttributesUsage = AudioAttributesUsage.notification,
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 = false,
this.groupAlertBehavior = GroupAlertBehavior.all,
this.autoCancel = true,
this.ongoing = false,
this.silent = false,
this.color,
this.largeIcon,
this.onlyAlertOnce = false,
this.showWhen = true,
this.when,
this.usesChronometer = false,
this.chronometerCountDown = 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,
this.tag,
this.actions,
this.colorized = false,
this.number,
this.audioAttributesUsage = AudioAttributesUsage.notification,
});