instance property

PurpleproPlatform get instance

The default instance of PurpleproPlatform to use.

Defaults to MethodChannelPurplepro.

Implementation

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

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

Implementation

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