RouteStreamBuilder constructor

RouteStreamBuilder({
  1. Key? key,
  2. Uri? url,
  3. String? routeId,
  4. required Stream<RouteBase?> fetchRoute(
    1. BuildContext context, {
    2. bool includeDrafts,
    3. String? path,
    4. String? routeId,
    }),
  5. required Widget buildContent(
    1. BuildContext context,
    2. ContentItem content
    ),
  6. bool includeDrafts = false,
  7. bool allowRefresh = true,
})

Creates a RouteStreamBuilder.

Either url or routeId must be provided, but not both.

Implementation

RouteStreamBuilder({
  super.key,
  this.url,
  this.routeId,
  required this.fetchRoute,
  required this.buildContent,
  this.includeDrafts = false,
  this.allowRefresh = true,
}) {
  debugAssertOneOfPathOrRouteId(url?.toString(), routeId);
}