Skip to main content

RestorableRouteBuilder

Type Alias RestorableRouteBuilder 

Source
pub type RestorableRouteBuilder = Rc<dyn Fn(&mut App, AnyElement, Option<Rc<dyn Any>>) -> Retained<AnyRoute>>;
Expand description

Creates a Route that is to be added to a Navigator.

The route can be configured with the provided arguments. The provided context is the BuildContext of the Navigator to which the route is added.

Used by the restorable methods of the Navigator that add anonymous routes (e.g. NavigatorState::restorable_push).

Aliased Typeยง

pub struct RestorableRouteBuilder { /* private fields */ }