close static method

dynamic close(
  1. String url, {
  2. bool clear = false,
})

Implementation

static close(String url, {bool clear = false}) {
//    Navigator.of(context, rootNavigator: true).pop();
  if (clear) {
    _dict.clear();
  } else {
    _dict.remove(url);
  }

  if (_dict.length == 0 && _loadStatue) {
    _loadStatue = false;
    tryCatch(() => FastRouter.popBackDialog(FConfig.ins.context!));
  }
}