showToast static method
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,
Implementation
static 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,
}) async {
_showToast(
context,
message: message,
messageStyle: messageStyle,
isClosable: isClosable,
expandedHeight: expandedHeight,
backgroundColor: backgroundColor,
shadowColor: shadowColor,
positionCurve: positionCurve,
length: length,
dismissDirection: dismissDirection,
leading: leading,
);
}