instance property

The default instance of FlutterSpellCheckerPlatform to use.

Defaults to MethodChannelFlutterSpellChecker.

Implementation

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

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

Implementation

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