instance property

HttpIoPlatform get instance

The default instance of HttpIoPlatform to use.

Defaults to MethodChannelHttpIo.

Implementation

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

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

Implementation

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