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