show static method

void show(
  1. String msg,
  2. BuildContext context, {
  3. Toast? duration,
  4. ToastGravity? gravity,
  5. Color? backgroundColor,
  6. Color? textColor,
  7. double? fontSize,
})

Implementation

static void show(String msg, BuildContext context,
    {Toast? duration,
    ToastGravity? gravity,
    Color? backgroundColor,
    Color? textColor,
    double? fontSize}) {
  Fluttertoast.showToast(
      msg: msg,
      toastLength: duration,
      gravity: gravity,
      backgroundColor: backgroundColor,
      textColor: textColor,
      fontSize: fontSize);
}