pub trait RawDialogRouteLeaf: PopupRoute {
// Required methods
fn raw_dialog_route_data(
self: Handle<Self>,
app: &App,
) -> &RawDialogRouteData;
fn raw_dialog_route_data_mut(
self: Handle<Self>,
app: &mut App,
) -> &mut RawDialogRouteData;
// Provided methods
fn barrier_dismissible(self: Handle<Self>, app: &App) -> bool { ... }
fn barrier_label(self: Handle<Self>, app: &App) -> Option<String> { ... }
fn barrier_color(self: Handle<Self>, app: &App) -> Option<Color> { ... }
fn transition_duration(self: Handle<Self>, app: &App) -> Duration { ... }
fn fullscreen_dialog(self: Handle<Self>, app: &App) -> bool { ... }
fn build_page(
self: Handle<Self>,
app: &mut App,
context: BuildContext,
animation: AnimationRef<f64>,
secondary_animation: AnimationRef<f64>,
) -> WidgetRef { ... }
fn build_transitions(
self: Handle<Self>,
app: &mut App,
context: BuildContext,
animation: AnimationRef<f64>,
secondary_animation: AnimationRef<f64>,
child: WidgetRef,
) -> WidgetRef { ... }
fn build_modal_barrier(
self: Handle<Self>,
app: &mut App,
context: BuildContext,
) -> WidgetRef { ... }
}Expand description
A PopupRoute with the fields Dart’s RawDialogRoute declares and the members it
overrides.
The shared bodies are associated functions on RawDialogRoute; an override calls one
where Dart writes super.….
A leaf writes raw_dialog_route_modal_route_overrides!
and raw_dialog_route_transition_route_overrides!
to route the ModalRoute and TransitionRoute virtuals here.
Required Methods§
Sourcefn raw_dialog_route_data(self: Handle<Self>, app: &App) -> &RawDialogRouteData
fn raw_dialog_route_data(self: Handle<Self>, app: &App) -> &RawDialogRouteData
Dart’s RawDialogRoute fields, held under the field raw_dialog_route
(raw_dialog_route_accessors!).
Sourcefn raw_dialog_route_data_mut(
self: Handle<Self>,
app: &mut App,
) -> &mut RawDialogRouteData
fn raw_dialog_route_data_mut( self: Handle<Self>, app: &mut App, ) -> &mut RawDialogRouteData
Provided Methods§
Sourcefn barrier_dismissible(self: Handle<Self>, app: &App) -> bool
fn barrier_dismissible(self: Handle<Self>, app: &App) -> bool
Dart’s RawDialogRoute.barrierDismissible.
Sourcefn barrier_label(self: Handle<Self>, app: &App) -> Option<String>
fn barrier_label(self: Handle<Self>, app: &App) -> Option<String>
Dart’s RawDialogRoute.barrierLabel.
Sourcefn barrier_color(self: Handle<Self>, app: &App) -> Option<Color>
fn barrier_color(self: Handle<Self>, app: &App) -> Option<Color>
Dart’s RawDialogRoute.barrierColor.
Sourcefn transition_duration(self: Handle<Self>, app: &App) -> Duration
fn transition_duration(self: Handle<Self>, app: &App) -> Duration
Dart’s RawDialogRoute.transitionDuration.
Sourcefn fullscreen_dialog(self: Handle<Self>, app: &App) -> bool
fn fullscreen_dialog(self: Handle<Self>, app: &App) -> bool
Dart’s RawDialogRoute.fullscreenDialog.
Sourcefn build_page(
self: Handle<Self>,
app: &mut App,
context: BuildContext,
animation: AnimationRef<f64>,
secondary_animation: AnimationRef<f64>,
) -> WidgetRef
fn build_page( self: Handle<Self>, app: &mut App, context: BuildContext, animation: AnimationRef<f64>, secondary_animation: AnimationRef<f64>, ) -> WidgetRef
Dart’s RawDialogRoute.buildPage.
Sourcefn build_transitions(
self: Handle<Self>,
app: &mut App,
context: BuildContext,
animation: AnimationRef<f64>,
secondary_animation: AnimationRef<f64>,
child: WidgetRef,
) -> WidgetRef
fn build_transitions( self: Handle<Self>, app: &mut App, context: BuildContext, animation: AnimationRef<f64>, secondary_animation: AnimationRef<f64>, child: WidgetRef, ) -> WidgetRef
Dart’s RawDialogRoute.buildTransitions.
Sourcefn build_modal_barrier(
self: Handle<Self>,
app: &mut App,
context: BuildContext,
) -> WidgetRef
fn build_modal_barrier( self: Handle<Self>, app: &mut App, context: BuildContext, ) -> WidgetRef
Dart’s RawDialogRoute.buildModalBarrier.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".