ToastService class

Constructors

ToastService()

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

showErrorToast(BuildContext context, {String? message, Widget? child, bool isClosable = false, double expandedHeight = 100, Color? backgroundColor, Color? shadowColor, Curve? slideCurve, Curve positionCurve = Curves.elasticOut, ToastLength length = ToastLength.short, DismissDirection dismissDirection = DismissDirection.down}) Future<void>
showSuccessToast(BuildContext context, {String? message, Widget? child, Widget? leading, bool isClosable = false, double expandedHeight = 100, Color? backgroundColor, Color? shadowColor, Curve? slideCurve, Curve positionCurve = Curves.elasticOut, ToastLength length = ToastLength.short, DismissDirection dismissDirection = DismissDirection.down}) Future<void>
showToast(BuildContext context, {String? message, TextStyle? messageStyle, Widget? leading, bool isClosable = false, double expandedHeight = 100, Color? backgroundColor, Color? shadowColor, Curve? slideCurve, Curve positionCurve = Curves.elasticOut, ToastLength length = ToastLength.short, DismissDirection dismissDirection = DismissDirection.down}) Future<void>
showToastNumber(int val) → void
showWarningToast(BuildContext context, {String? message, Widget? child, bool isClosable = false, double expandedHeight = 100, Color? backgroundColor, Color? shadowColor, Curve? slideCurve, Curve positionCurve = Curves.elasticOut, ToastLength length = ToastLength.short, DismissDirection dismissDirection = DismissDirection.down}) Future<void>
showWidgetToast(BuildContext context, {Widget? child, bool isClosable = false, double expandedHeight = 100, Color? backgroundColor, Color? shadowColor, Curve? slideCurve, Curve positionCurve = Curves.elasticOut, ToastLength length = ToastLength.short, DismissDirection dismissDirection = DismissDirection.down}) Future<void>