instance property

The default instance of CommonLibraryPlatform to use.

Defaults to MethodChannelCommonLibrary.

Implementation

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

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

Implementation

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