registerWith static method

void registerWith(
  1. Registrar registrar
)

Factory method that initializes the Sensors plugin platform with an instance of the plugin for the web.

Implementation

static void registerWith(Registrar registrar) {
  SensorsPlatform.instance = SensorsPlugin();
}