instance property

The default instance of NativeShutterSoundPlatform to use.

Defaults to MethodChannelNativeShutterSound.

Implementation

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

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

Implementation

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