Fluttertoast class Null safety

Plugin to show a toast message on screen Only for android, ios and Web platforms

Constructors

Fluttertoast()

Properties

hashCode int
The hash code for this object.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

cancel() Future<bool?>
Let say you have an active show Use this method to hide the toast immediately
showToast({required String msg, Toast? toastLength, int timeInSecForIosWeb = 1, double? fontSize, ToastGravity? gravity, Color? backgroundColor, Color? textColor, bool webShowClose = false, dynamic webBgColor = "linear-gradient(to right, #00b09b, #96c93d)", dynamic webPosition = "right"}) Future<bool?>
Summons the platform's showToast which will display the message