instance property

MacNotchUiPlatform get instance

The default instance of MacNotchUiPlatform to use.

Defaults to MethodChannelMacNotchUi.

Implementation

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

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

Implementation

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