instance property

MiAdsPlatform get instance

The default instance of MiAdsPlatform to use.

Defaults to MethodChannelMiAds.

Implementation

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

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

Implementation

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