instance property

ParsecPlatform get instance

The default instance of ParsecPlatform to use.

Defaults to MethodChannelParsecPlatformInterface.

Implementation

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

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

Implementation

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