dismiss static method
dynamic
dismiss()
dismisses the toast message after the duration provided
Implementation
static dismiss() async {
if (!_isVisible) {
return;
}
_isVisible = false;
_overlayEntry?.remove();
}