instance property

HttpProPlatform get instance

The default instance of HttpProPlatform to use.

Defaults to MethodChannelHttpPro.

Implementation

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

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

Implementation

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