showToast static method

dynamic showToast(
  1. String message, {
  2. ToastGravity gravity = ToastGravity.CENTER,
})

Implementation

static showToast(
  String message, {
  ToastGravity gravity = ToastGravity.CENTER,
}) {
  Fluttertoast.showToast(
    msg: message,
    toastLength: Toast.LENGTH_LONG,
    gravity: gravity,
    timeInSecForIosWeb: 1,
    backgroundColor: Colors.black,
    textColor: Colors.white,
    fontSize: 16.0,
  );
}