RouteLoader typedef

RouteLoader = Widget Function(BuildContext context, [Uri? url, String? routeId])

A builder for a widget that is shown when a route is loading.

This builder is called when navigating between routes. The url parameter contains the destination URL, and routeId contains the unique identifier for the route.

Example:

RouteLoader loader = (context, url, routeId) => Center(
  child: Text('Loading $url...'),
);

Implementation

typedef RouteLoader = Widget Function(BuildContext context,
    [Uri? url, String? routeId]);