instance property

The default instance of UrlLauncherPlatform to use.

Defaults to MethodChannelUrlLauncher.

Implementation

static UrlLauncherPlatform get instance => _instance;
void instance=(UrlLauncherPlatform instance)

Platform-specific plugins should set this with their own platform-specific class that extends UrlLauncherPlatform when they register themselves.

Implementation

// TODO(amirh): Extract common platform interface logic.
// https://github.com/flutter/flutter/issues/43368
static set instance(UrlLauncherPlatform instance) {
  PlatformInterface.verify(instance, _token);
  _instance = instance;
}