instance property

ButtonWidgetPlatform get instance

The default instance of ButtonWidgetPlatform to use.

Defaults to MethodChannelButtonWidget.

Implementation

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

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

Implementation

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