build method

Widget build(
  1. BuildContext context,
  2. GoRouterState state
)

Creates the Widget for this route.

Subclasses must override one of build, buildPage, or redirect.

Corresponds to GoRoute.builder.

Implementation

Widget build(BuildContext context, GoRouterState state) =>
    throw UnimplementedError(
      'One of `build` or `buildPage` must be implemented.',
    );