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