instance property

The default instance of CustomPhoneNumberFieldPlatform to use.

Defaults to MethodChannelCustomPhoneNumberField.

Implementation

static CustomPhoneNumberFieldPlatform get instance => _instance;
void instance=(CustomPhoneNumberFieldPlatform instance)

Platform-specific implementations should set this with their own platform-specific class that extends CustomPhoneNumberFieldPlatform when they register themselves.

Implementation

static set instance(CustomPhoneNumberFieldPlatform instance) {
  PlatformInterface.verifyToken(instance, _token);
  _instance = instance;
}