ForegroundMessageCallback typedef

ForegroundMessageCallback = Future<void> Function(NotificationPayload payload)

Callback type for handling foreground messages.

Called when a notification arrives while app is in foreground.

Implementation

typedef ForegroundMessageCallback = Future<void> Function(
  NotificationPayload payload,
);