RouteBuilder<T> typedef

RouteBuilder<T> = T Function(ParseContext<T> context)

A function that gets called if its owning Segment matches a path.

T can be Widget or some kind of RouteHandler for as part of a backend.

Implementation

typedef RouteBuilder<T> = T Function(ParseContext<T> context);