instance property

QsToastPlatform get instance

The default instance of QsToastPlatform to use.

Defaults to MethodChannelQsToast.

Implementation

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

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

Implementation

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