Skip to main content

RawDialogRouteLeaf

Trait RawDialogRouteLeaf 

Source
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§

Source

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!).

Source

fn raw_dialog_route_data_mut( self: Handle<Self>, app: &mut App, ) -> &mut RawDialogRouteData

Provided Methods§

Source

fn barrier_dismissible(self: Handle<Self>, app: &App) -> bool

Dart’s RawDialogRoute.barrierDismissible.

Source

fn barrier_label(self: Handle<Self>, app: &App) -> Option<String>

Dart’s RawDialogRoute.barrierLabel.

Source

fn barrier_color(self: Handle<Self>, app: &App) -> Option<Color>

Dart’s RawDialogRoute.barrierColor.

Source

fn transition_duration(self: Handle<Self>, app: &App) -> Duration

Dart’s RawDialogRoute.transitionDuration.

Source

fn fullscreen_dialog(self: Handle<Self>, app: &App) -> bool

Dart’s RawDialogRoute.fullscreenDialog.

Source

fn build_page( self: Handle<Self>, app: &mut App, context: BuildContext, animation: AnimationRef<f64>, secondary_animation: AnimationRef<f64>, ) -> WidgetRef

Dart’s RawDialogRoute.buildPage.

Source

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.

Source

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".

Implementors§