registerWith static method

void registerWith(
  1. Registrar registrar
)

Implementation

static void registerWith(Registrar registrar) {
  // Touch the singleton to ensure any required lazy initialization runs.
  FirebaseMessagingHandler.instance;
  // Required to keep the registrar alive for method channel plugins.
  registrar.registerMessageHandler();
}