buildPageWithState method

Page<void> buildPageWithState(
  1. BuildContext context,
  2. GoRouterState state
)

A page builder for this route with GoRouterState.

Subclasses can override this function to provide a custom Page.

Subclasses must override one of build, buildPageWithState or redirect.

Corresponds to GoRoute.pageBuilder.

By default, returns a Page instance that is ignored, causing a default Page implementation to be used with the results of build.

Implementation

Page<void> buildPageWithState(BuildContext context, GoRouterState state) =>
    // ignore: deprecated_member_use_from_same_package
    buildPage(context);