showToast function

dynamic showToast(
  1. String content, {
  2. ToastGravity gravity = ToastGravity.BOTTOM,
})

Implementation

showToast(String content, {ToastGravity gravity=ToastGravity.BOTTOM}) {
  Fluttertoast.showToast(
      msg: content,
      toastLength: Toast.LENGTH_SHORT,
      gravity: gravity,
      timeInSecForIosWeb: 4,
      backgroundColor: const Color(0xff01539D),
      textColor: Colors.white,
      fontSize: 16.0);
}