removeRoute method

bool removeRoute({
  1. required String name,
  2. bool removeAll = false,
})

直接移除某个路由栈 Search rule: 栈顶 -> 栈底 如果位于栈顶则直接pop name 路由名 removeAll 如果存在多个,是否全部删除 return 是否有删除

Implementation

bool removeRoute({
  required String name,
  bool removeAll = false,
}) {
  return _delegate.remove(name: name, removeAll: removeAll);
}