instance property

AmwalPayPlatform instance

The default instance of AmwalPayPlatform to use.

Defaults to MethodChannelAmwalPay.

Implementation

static AmwalPayPlatform get instance => _instance;
void instance=(AmwalPayPlatform instance)

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

Implementation

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