showToast method

void showToast(
  1. String message,
  2. BuildContext? context,
  3. Color color
)

Implementation

void showToast(String message, BuildContext? context, Color color) {
  Fluttertoast.showToast(
      msg: message,
      backgroundColor: color,
      textColor: AppColors.appColorBlack85,
      gravity: ToastGravity.TOP,
      timeInSecForIosWeb: 5,
      toastLength: Toast.LENGTH_SHORT);
}