show static method

void show(
  1. String message, {
  2. ToastGravity gravity = ToastGravity.BOTTOM,
  3. Color? backgroundColor,
  4. Color textColor = Colors.white,
})

Implementation

static void show(
  String message, {
  ToastGravity gravity = ToastGravity.BOTTOM,
  Color? backgroundColor,
  Color textColor = Colors.white,
}) {
  Fluttertoast.showToast(
    msg: message,
    gravity: gravity,
    backgroundColor: backgroundColor ?? Colors.black87,
    textColor: textColor,
  );
}