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