showToast static method

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