instance property
SpeechToTextPlatform
instance
The default instance of SpeechToTextPlatform to use.
Defaults to MethodChannelSpeechToText.
Implementation
static SpeechToTextPlatform get instance => _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;
}