instance property

OverlayKeebPlatform get instance

Returns the current default implementation.

This is primarily used by the plugin implementation to access platform-specific functionality.

Implementation

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

Sets the default instance of OverlayKeebPlatform to use.

This is only used for testing purposes to provide a mock implementation. The setter verifies that the provided instance has a valid platform interface token.

Implementation

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