instance property

Barometer2Platform get instance

The default instance of Barometer2Platform to use.

Defaults to MethodChannelBarometer2.

Implementation

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

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

Implementation

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