instance property

CommonFlutterPlatform get instance

The default instance of CommonFlutterPlatform to use.

Defaults to MethodChannelCommonFlutter.

Implementation

static CommonFlutterPlatform get instance => _instance;
set instance (CommonFlutterPlatform instance)

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

Implementation

static set instance(CommonFlutterPlatform instance) {
  PlatformInterface.verifyToken(instance, _token);
  _instance = instance;
}