instance property

ResdkPlatform get instance

The default instance of ResdkPlatform to use.

Defaults to MethodChannelResdk.

Implementation

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

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

Implementation

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