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