NotificationWillDisplayEvent class

Fired for a notification that arrives while the app is in the foreground. Call preventDefault synchronously inside your listener to suppress the system notification display; otherwise it is shown automatically.

Constructors

NotificationWillDisplayEvent.internal(PushNotification notification, String _eventId, void _complete(String eventId, bool discard))
Not for public use — constructed internally when bridging the native event.

Properties

hashCode → int
The hash code for this object.
no setterinherited
notification → PushNotification
The notification about to be displayed.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

completeIfNeeded() → void
Not for public use — called by the SDK after all listeners have run. If no listener called preventDefault, completes with display=true so the native completion handler fires and the banner is shown.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
preventDefault() → void
Suppress the system notification display for this event.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited