presentBanner property

bool? presentBanner
final

Indicates if the notification should be presented as a banner when the notification is triggered while app is in the foreground.

Corresponds to https://developer.apple.com/documentation/usernotifications/unnotificationpresentationoptions/3564812-banner

When this is set to null, it will use the default setting given to DarwinInitializationSettings.defaultPresentBanner.

On iOS, this property is only applicable to iOS 14 or newer On macOs, this property is only applicable to macOS 11 or newer.

Implementation

final bool? presentBanner;