instance property

ApiPaymentPlatform get instance

The default instance of ApiPaymentPlatform to use.

Defaults to MethodChannelApiPayment.

Implementation

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

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

Implementation

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