instance property

MobigoiotApiPlatform get instance

The default instance of MobigoiotApiPlatform to use.

Defaults to MethodChannelMobigoiotApi.

Implementation

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

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

Implementation

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