defaultPresentBadge property

bool defaultPresentBadge
final

Configures the default setting on if a badge value should be applied when a notification is triggered while app is in the foreground.

Corresponds to https://developer.apple.com/documentation/usernotifications/unnotificationpresentationoptions/1649515-badge

Default value is true.

On iOS, this property is only applicable to iOS 10 or newer. On macOS, this property is only applicable to macOS 10.14 or newer.

Implementation

final bool defaultPresentBadge;