instance property
PaymentPlatform
get
instance
The default instance of PaymentPlatform to use.
Defaults to MethodChannelPayment.
Implementation
static PaymentPlatform get instance => _instance;
set
instance
(PaymentPlatform instance)
Platform-specific implementations should set this with their own platform-specific class that extends PaymentPlatform when they register themselves.
Implementation
static set instance(PaymentPlatform instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}