dismiss method
void
dismiss()
Implementation
void dismiss() {
// Navigator.of(context).pop();
// check if there's an overlay
if (context != null) {
BuildContext context = this.context!;
if (Navigator.canPop(context)) {
Navigator.of(context).pop();
}
// log('dismissed');
} else {
return;
}
}