init static method

Future init({
  1. dynamic force = false,
})

Initialize the module.

This is usually called before the module can be used.

Set force to true if you want to refetch the user agent properties from the native platform.

Implementation

static Future init({force: false}) async {
  if (_properties == null || force) {
    _properties = Map.unmodifiable(await (_channel.invokeMethod('getProperties')));
  }
}