addTransparentRoute static method

void addTransparentRoute(
  1. String name,
  2. RouteWidgetBuilder builder
)

添加透明路由

Implementation

static void addTransparentRoute(String name, RouteWidgetBuilder builder) {
  CustomPageRouteOptions options = CustomPageRouteOptions(
    opaque: false,
  );
  RouteOptions routeOptions = RouteOptions(builder, options);
  RouterManager.routes.putIfAbsent(name, () => routeOptions);
}