makeToast function

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

Implementation

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