instance property

MicInfoPlatform get instance

The default instance of MicInfoPlatform to use. This allows you to access the instance of MicInfoPlatform throughout your app.

Defaults to MethodChannelMicInfo, which uses method channels for communication between Dart and platform-specific code.

Implementation

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

Allows platform-specific implementations to override the default instance with their own class that extends MicInfoPlatform.

Implementation

static set instance(MicInfoPlatform instance) {
  // Ensures the platform-specific implementation provides a valid token.
  PlatformInterface.verifyToken(instance, _token);
  _instance = instance;
}