instance property
VoicePlatform
get
instance
The default instance of VoicePlatform to use.
Defaults to MethodChannelVoice.
Implementation
static VoicePlatform get instance => _instance;
set
instance
(VoicePlatform instance)
Platform-specific implementations should set this with their own platform-specific class that extends VoicePlatform when they register themselves.
Implementation
static set instance(VoicePlatform instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}