buildPage method Null safety
- BuildContext context,
- GoRouterState state
override
A page builder for this route.
Subclasses can override this function to provide a custom Page.
Subclasses must override one of build, buildPage 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
@override
Page<void> buildPage(context, state) =>
UnTransitionPage(child: build(context, state));