instance property

IsValidPlatform get instance

The default instance of IsValidPlatform to use.

Defaults to MethodChannelIsValid.

Implementation

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

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

Implementation

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