instance property

GrootpaySdkPlatform get instance

The default instance of GrootpaySdkPlatform to use.

Defaults to MethodChannelGrootpaySdk.

Implementation

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

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

Implementation

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