toast static method

dynamic toast(
  1. String msg, {
  2. BuildContext? context,
  3. int? code,
})

Implementation

static toast(String msg,{BuildContext? context,int? code}){
  Fluttertoast.showToast(
    msg: msg,
    toastLength: Toast.LENGTH_LONG,
    gravity: ToastGravity.TOP,
    timeInSecForIosWeb: 1,
    backgroundColor: Colors.grey,
    textColor: Colors.white,
    fontSize:15,
  );

}