instance property

NetDioRequestPlatform get instance

The default instance of NetDioRequestPlatform to use.

Defaults to MethodChannelNetDioRequest.

Implementation

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

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

Implementation

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