finishList method

void finishList(
  1. List<String> routeNames
)

销毁指定的所有页面 routeNames 需要销毁页面的路由集合

Implementation

void finishList(List<String> routeNames) {
  if (routeNames.isEmptyList) {
    return;
  }
  routeNames.forEach((element) {
    finish(element);
  });
}