instance property

PrettyButtonPlatform get instance

The default instance of PrettyButtonPlatform to use.

Defaults to MethodChannelPrettyButton.

Implementation

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

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

Implementation

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