show method
void
show()
Implementation
@override
show(String message, {
ToastLength? toastLength,
Duration? toastDuration,
int? timeInSec,
ToastGravity? gravity,
double? fontSize,
Color? backgroundColor,
Color? textColor
}) {
if (message.isEmpty) {
return;
}
toast.Fluttertoast.showToast(
msg: message,
toastLength: toastOf(toastLength ?? ToastConfig.defaultToastLength),
timeInSecForIosWeb: timeInSec ?? ToastConfig.defaultTimeInSec,
gravity: toastGravityOf(gravity ?? ToastConfig.defaultGravity),
fontSize: fontSize ?? ToastConfig.defaultFontSize,
backgroundColor: backgroundColor ?? ToastConfig.defaultBackgroundColor,
textColor: textColor ?? ToastConfig.defaultTextColor,
);
}