show method
Implementation
void show({required Duration duration, VoidCallback? onDismiss}) async {
_isVisible = true;
overlayState.insert(overlayEntry);
Future.delayed(duration, () {
_dismiss();
onDismiss?.call();
});
}
void show({required Duration duration, VoidCallback? onDismiss}) async {
_isVisible = true;
overlayState.insert(overlayEntry);
Future.delayed(duration, () {
_dismiss();
onDismiss?.call();
});
}