DefinedPageRouteFactory typedef

DefinedPageRouteFactory = PageRoute<T> Function<T>(RouteSettings settings, WidgetBuilder builder, RouteOptions options)

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);