makeToast function

Future<bool?> makeToast({
  1. required String msg,
  2. Color backgroundColor = RoomColors.toastBlack,
  3. Color textColor = Colors.white,
})

Implementation

Future<bool?> makeToast({
  required String msg,
  Color backgroundColor = RoomColors.toastBlack,
  Color textColor = Colors.white,
}) {
  return Fluttertoast.showToast(
    msg: msg,
    toastLength: Toast.LENGTH_SHORT,
    gravity: ToastGravity.CENTER,
    timeInSecForIosWeb: 1,
    backgroundColor: backgroundColor,
    textColor: textColor,
    fontSize: 16,
  );
}