instance property

EspIdfPlatform get instance

The default instance of EspIdfPlatform to use.

Defaults to MethodChannelEspIdf.

Implementation

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

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

Implementation

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