toast function
void
toast(})
Implementation
void toast(
String? value, {
ToastGravity? gravity,
length = Toast.LENGTH_SHORT,
Color? bgColor,
Color? textColor,
bool print = false,
}) {
if (value.validate().isEmpty || isLinux) {
cklog(value);
} else {
Fluttertoast.showToast(
msg: value.validate(),
gravity: gravity,
toastLength: length,
backgroundColor: bgColor,
textColor: textColor,
);
if (print) cklog(value);
}
}