instance property

Default instance of BackgroundHttpClientPlatform

By default, MethodChannelBackgroundHttpClient is used.

Implementation

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

Platform implementations should set this value to their own class that extends BackgroundHttpClientPlatform when registering.

Implementation

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