instance property

LocalVoicePlatform get instance

The default instance of LocalVoicePlatform to use.

Defaults to MethodChannelLocalVoice.

Implementation

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

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

Implementation

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