setBackgroundMessageHandler method

void setBackgroundMessageHandler(
  1. Future<void> handler(
    1. RemoteMessage message
    )
)

Specify background message handler

Implementation

void setBackgroundMessageHandler(
  Future<void> Function(RemoteMessage message) handler,
) {
  FirebaseMessaging.onBackgroundMessage(handler);
}