builder property

PathWidgetBuilder builder
final

The builder for the associated pattern route. The first argument is the BuildContext and the second argument a RegEx match if that is included in the pattern.

Path(
  'r'^/demo/([\w-]+)$',
  (context, matches) => Page(argument: match),
)

Implementation

final PathWidgetBuilder builder;