instance property

NativeLensPlatform get instance

The default instance of NativeLensPlatform to use.

Defaults to MethodChannelNativeLens.

Implementation

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

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

Implementation

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