registerWith static method

void registerWith(
  1. Registrar registrar
)

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

Implementation

static void registerWith(Registrar registrar) {
  DeviceInfoPlatform.instance = DeviceInfoPlusPlugin(html.window.navigator);
}