instance property

HoldableButtonPlatform get instance

The default instance of HoldableButtonPlatform to use.

Defaults to MethodChannelHoldableButton.

Implementation

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

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

Implementation

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