instance property

PiperTtsPluginPlatform get instance

The default instance of PiperTtsPluginPlatform to use.

Defaults to MethodChannelPiperTtsPlugin.

Implementation

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

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

Implementation

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