instance property

TitleBarPlatform get instance

The default instance of TitleBarPlatform to use.

Defaults to MethodChannelTitleBar.

Implementation

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

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

Implementation

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