instance property

FlutterPhonePlatform get instance

The default instance of FlutterPhonePlatform to use.

Defaults to MethodChannelFlutterPhone.

Implementation

static FlutterPhonePlatform get instance => _instance;
set instance (FlutterPhonePlatform instance)

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

Implementation

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