show method

Future<bool> show()

显示弹窗

Implementation

Future<bool> show() {
  try {
    if (isShowing()) {
      return Future<bool>.value(false);
    }
    Get.dialog(
      WillPopScope(
          onWillPop: () {
            return Future<bool>.value(false);
          },
          child: _widget),
      name: 'updateVersionDialog',
      barrierDismissible: false,
    );
    return Future<bool>.value(true);
  } catch (err) {
    return Future<bool>.value(false);
  }
}