showToast static method

Future showToast(
  1. String title, {
  2. bool isLong = true,
  3. ToastGravity? gravity,
})

Implementation

static Future showToast(
  String title, {
  bool isLong = true,
  ToastGravity? gravity,
}) {
  return Fluttertoast.showToast(
    msg: title,
    toastLength: isLong ? Toast.LENGTH_LONG : Toast.LENGTH_SHORT,
    gravity: gravity ?? ToastGravity.CENTER,
    backgroundColor: tsBgColor ?? Colors.black.withOpacity(0.5),
    textColor: tsTxColor ?? Colors.white,
  );
}