instance property

TransformersPlatform get instance

The default instance of TransformersPlatform to use.

Defaults to MethodChannelTransformers.

Implementation

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

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

Implementation

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