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