instance property

ValidationProPlatform get instance

The default instance of ValidationProPlatform to use.

Defaults to MethodChannelValidationPro.

Implementation

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

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

Implementation

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