pub struct ModalRouteData {
pub filter: Option<ImageFilterConfig>,
pub traversal_edge_behavior: Option<TraversalEdgeBehavior>,
pub directional_traversal_edge_behavior: Option<TraversalEdgeBehavior>,
pub received_transition: Option<DelegatedTransitionBuilder>,
/* private fields */
}Expand description
The fields Dart’s ModalRoute declares; every modal route carries this bag under the field
modal_route.
Fields§
§filter: Option<ImageFilterConfig>The filter to add to the barrier.
If given, this filter is applied to the modal barrier using BackdropFilter. This
allows blur effects, for example.
traversal_edge_behavior: Option<TraversalEdgeBehavior>Controls the transfer of focus beyond the first and the last items of a
FocusScopeNode.
If None, Navigator::route_traversal_edge_behavior is used.
directional_traversal_edge_behavior: Option<TraversalEdgeBehavior>Controls the directional transfer of focus beyond the first and the last items of a
FocusScopeNode.
If None, Navigator::route_directional_traversal_edge_behavior is used.
received_transition: Option<DelegatedTransitionBuilder>The DelegatedTransitionBuilder received from the route above this one in the
navigation stack.
It uses the above route’s ModalRoute::delegated_transition in order to show the
right route transition when the above route either enters or leaves the navigation
stack. If not None, it wraps the route content.
Implementations§
Source§impl ModalRouteData
impl ModalRouteData
Sourcepub fn new(app: &mut App) -> ModalRouteData
pub fn new(app: &mut App) -> ModalRouteData
The bag of a freshly created modal route; Dart’s constructor defaults.