instance property

ThingSmartSdkPlatform get instance

The default instance of ThingSmartSdkPlatform to use.

Defaults to MethodChannelThingSmartSdk.

Implementation

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

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

Implementation

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