instance property

CalljmpStore get instance

The default instance of CalljmpStore to use.

Defaults to MethodChannelCalljmpStore which uses method channels to communicate with platform-specific native implementations.

Implementation

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

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

instance The platform-specific implementation to use.

Throws AssertionError if the instance doesn't implement the correct interface.

Implementation

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