instance property

AmbientLightPlatform get instance

The default instance of AmbientLightPlatform to use.

Defaults to MethodChannelAmbientLight.

Implementation

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

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

Implementation

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