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