instance property

IosStepcounterPlatform get instance

The default instance of IosStepcounterPlatform to use.

Defaults to MethodChannelIosStepcounter.

Implementation

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

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

Implementation

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