showToast function

dynamic showToast(
  1. String? message,
  2. BuildContext? context
)

Implementation

showToast(String? message,BuildContext? context){
  Fluttertoast.showToast(
    msg: message.toString(),
    toastLength: Toast.LENGTH_SHORT,
    gravity: ToastGravity.BOTTOM,
    timeInSecForIosWeb: 1,
    backgroundColor: black,
    textColor: white,
    fontSize: 16.0
  );
}