showToast static method
Implementation
static showToast(String msg, {Alignment? alignment, String eors = "i"}) {
alignment ??= Alignment.bottomCenter;
Color contentColor = Colors.black87;
switch (eors.toUpperCase()) {
case 'E':
contentColor = Colors.red;
break;
case 'S':
contentColor = Colors.teal;
break;
default:
contentColor = Colors.black87;
}
// Toast.show(msg, context, gravity: gravity, duration: 3);
BotToast.showText(
text: msg,
duration: const Duration(seconds: 3),
// onlyOne: onlyOne,
// clickClose: clickClose,
// crossPage: crossPage,
// backButtonBehavior: backButtonBehavior,
align: alignment,
// animationDuration:
// Duration(milliseconds: animationMilliseconds),
// animationReverseDuration:
// Duration(milliseconds: animationReverseMilliseconds),
textStyle: const TextStyle(fontSize: 14, color: Colors.white),
// borderRadius: BorderRadius.circular(borderRadius.toDouble()),
// backgroundColor: Colors.black87,
contentColor: contentColor);
}