instance property

AudioDurationPlatform get instance

The default instance of AudioDurationPlatform to use.

Defaults to MethodChannelAudioDuration.

Implementation

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

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

Implementation

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