instance property

The default instance of SpeechToTextPlatform to use.

Defaults to MethodChannelSpeechToText.

Implementation

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

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

Implementation

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