build method Null safety

Widget build(
  1. BuildContext context
)

Creates the Widget for this route.

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

Corresponds to GoRoute.builder.

Implementation

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