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