dismiss method
隐藏弹窗
Implementation
Future<bool> dismiss() {
try {
if (isShowing()) {
Get.back();
return Future<bool>.value(true);
} else {
return Future<bool>.value(false);
}
} catch (err) {
return Future<bool>.value(false);
}
}