FluttertoastWebPlugin class

Plugin Class to show a toast message on screen for web

Constructors

FluttertoastWebPlugin()
Constructor class which calls the metohd to inject JS and CSS in to dom

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

addHtmlToast({String msg = "", String? gravity = "top", String position = "right", String bgcolor = "linear-gradient(to right, #00b09b, #96c93d)", int time = 3000, bool showClose = false, int? textColor}) → dynamic
injects Final Toastify code with all the parameters to make toast visible on web
handleMethodCall(MethodCall call) → Future
Handle Method Callbacks from MethodChannel.
injectCssAndJSLibraries() → Future<void>
injectCssAndJSLibraries which add the JS and CSS files into DOM
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
showToast(dynamic args) → dynamic
showToast which parses the required arguments and pass it to addHtmlToast
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

registerWith(Registrar registrar) → void
Registers MethodChannel used to communicate with the platform side.