DefinedPageRouteFactory typedef
Creates a page route, preserving the exact supplied settings object. Prefer this contract for new integrations; legacy factories remain supported.
Implementation
typedef DefinedPageRouteFactory = PageRoute<T> Function<T>(
RouteSettings settings, WidgetBuilder builder, RouteOptions options);