instance property
HttpClientPlatform
get
instance
The default instance of HttpClientPlatform to use.
Defaults to MethodChannelHttpClient.
Implementation
static HttpClientPlatform get instance => _instance;
set
instance
(HttpClientPlatform instance)
Platform-specific implementations should set this with their own platform-specific class that extends HttpClientPlatform when they register themselves.
Implementation
static set instance(HttpClientPlatform instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}