dismiss<T> static method

Future<void> dismiss<T>({
  1. SmartStatus status = SmartStatus.smart,
  2. String? tag,
  3. T? result,
  4. bool force = false,
})

close dialog

status:for the specific meaning, please refer to the SmartStatus note

tag:if you want to close the specified dialog, you can set a 'tag' for it

result:set a return value and accept it at the place where the dialog is called

force:force close the permanent dialog; with this param, the permanent dialog will be closed first


关闭dialog

status:具体含义可参照SmartStatus注释 注意:status参数设置值后,closeType参数将失效。

tag:如果你想关闭指定的dialog,你可以给它设置一个tag

result:设置一个返回值,可在调用弹窗的地方接受

force:强制关闭永久化的dialog; 使用该参数, 将优先关闭永久化dialog

Implementation

static Future<void> dismiss<T>({
  SmartStatus status = SmartStatus.smart,
  String? tag,
  T? result,
  bool force = false,
}) async {
  return DialogProxy.instance.dismiss<T>(
    status: status,
    tag: tag,
    result: result,
    force: force,
  );
}