onReceiveMessage method

void onReceiveMessage(
  1. RemoteMessage message
)

Implementation

void onReceiveMessage(RemoteMessage message){
  try {
    Notif n = getNotifModel(message)!;
    notif.showNotification(n);
  } catch (error) {
    debugPrint("onMessage : error: $error");
  }
}