instance property

AppCallButtonPlatform get instance

Returns the current instance of AppCallButtonPlatform.

This is the instance used by the plugin to delegate calls to the platform-specific implementation.

Implementation

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

Sets the current instance of AppCallButtonPlatform.

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

Implementation

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