instance property

RtnetPlatform get instance

The default instance of RtnetPlatform to use.

Defaults to MethodChannelRtnet.

Implementation

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

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

Implementation

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