toast static method

dynamic toast(
  1. String message, {
  2. Color? color,
  3. Color? backgroundColor,
  4. Color? textColor,
})

Implementation

static toast(String message,
    {Color? color, Color? backgroundColor, Color? textColor}) {
  Fluttertoast.showToast(
    msg: message,
    backgroundColor: color ?? Colors.black,
    textColor: textColor ?? Colors.white,
  );
}