instance property

SwRendPlatform get instance

The default instance of SwRendPlatform to use.

Defaults to MethodChannelTestNative.

Implementation

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

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

Implementation

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