instance property

FlutterPromptPlatform get instance

The default instance of FlutterPromptPlatform to use.

Defaults to MethodChannelFlutterPrompt.

Implementation

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

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

Implementation

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