instance property

FlutterToastPlatform get instance

The default instance of FlutterToastPlatform to use.

Defaults to MethodChannelFlutterToast.

Implementation

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

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

Implementation

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