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