instance property

ActiveWindowPlatform get instance

The default instance of ActiveWindowPlatform to use.

Defaults to MethodChannelActiveWindow.

Implementation

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

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

Implementation

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