hide method
Implementation
Future<bool> hide() {
if (_isShowing) {
try {
_isShowing = false;
Navigator.of(_dismissingContext).pop(true);
return Future.value(true);
} catch (_) {
return Future.value(false);
}
} else {
return Future.value(false);
}
}