showWidgetToast static method

Future<void> showWidgetToast(
  1. BuildContext context, {
  2. Widget? child,
  3. bool isClosable = false,
  4. double expandedHeight = 100,
  5. Color? backgroundColor,
  6. Color? shadowColor,
  7. Curve? slideCurve,
  8. Curve positionCurve = Curves.elasticOut,
  9. ToastLength length = ToastLength.short,
  10. 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,
  );
}