instance property

DahuaSdkPlatform get instance

The default instance of DahuaSdkPlatform to use.

Defaults to MethodChannelDahuaSdk.

Implementation

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

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

Implementation

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