instance property

StyletPlatform get instance

The active platform backend.

Implementation

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

Replaces the active backend, primarily for federated plugins and tests.

Implementation

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