instance property

EspFlutterSdkPlatform get instance

The default instance of EspFlutterSdkPlatform to use.

Defaults to MethodChannelEspFlutterSdk.

Implementation

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

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

Implementation

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