instance property

RestestpluginPlatform get instance

The default instance of RestestpluginPlatform to use.

Defaults to MethodChannelRestestplugin.

Implementation

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

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

Implementation

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