instance property

HttpWrapPlatform get instance

The active platform implementation for optional native integration.

The main request API in this package runs directly in Dart. This interface remains available for the generated plugin wrapper and tests.

Implementation

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

Registers a replacement platform implementation.

Implementation

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