EasyToast class
A lightweight toast utility for Flutter. Usage:
EasyToast.show(context, 'Hello World!');
Constructors
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent 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
-
show(
BuildContext context, String message, {Duration duration = const Duration(seconds: 2), Color backgroundColor = Colors.black87, Color textColor = Colors.white, double fontSize = 14.0, double borderRadius = 8.0, EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 16, vertical: 10), ToastGravity gravity = ToastGravity.bottom}) → void - Show a toast message.