Skip to main content

RouteBase

Trait RouteBase 

Source
pub trait RouteBase: Route {
Show 18 methods // Provided methods fn overlay_entries( self: Handle<Self>, app: &App, ) -> Vec<Handle<OverlayEntry>> { ... } fn install(self: Handle<Self>, app: &mut App) { ... } fn did_push(self: Handle<Self>, app: &mut App) -> TickerFuture ⓘ { ... } fn did_add(self: Handle<Self>, app: &mut App) { ... } fn did_replace( self: Handle<Self>, app: &mut App, old_route: Option<AnyRoute>, ) { ... } fn will_pop(self: Handle<Self>, app: &mut App) -> RoutePopDisposition { ... } fn pop_disposition(self: Handle<Self>, app: &mut App) -> RoutePopDisposition { ... } fn on_pop_invoked_with_result( self: Handle<Self>, app: &mut App, did_pop: bool, result: RouteResult, ) { ... } fn will_handle_pop_internally(self: Handle<Self>, app: &App) -> bool { ... } fn current_result(self: Handle<Self>, app: &App) -> RouteResult { ... } fn did_pop(self: Handle<Self>, app: &mut App, result: RouteResult) -> bool { ... } fn did_complete(self: Handle<Self>, app: &mut App, result: RouteResult) { ... } fn did_pop_next(self: Handle<Self>, app: &mut App, next_route: AnyRoute) { ... } fn did_change_next( self: Handle<Self>, app: &mut App, next_route: Option<AnyRoute>, ) { ... } fn did_change_previous( self: Handle<Self>, app: &mut App, previous_route: Option<AnyRoute>, ) { ... } fn changed_internal_state(self: Handle<Self>, app: &mut App) { ... } fn changed_external_state(self: Handle<Self>, app: &mut App) { ... } fn dispose(self: Handle<Self>, app: &mut App) { ... }
}
Expand description

The bodies of Dart’s Route class.

A subclass whose override runs Dart’s super.install() calls RouteBase::install; a Route default is one line that does the same. Every Route implementor gets these bodies, so an override on the leaf never reaches them by accident.

Provided Methods§

Source

fn overlay_entries(self: Handle<Self>, app: &App) -> Vec<Handle<OverlayEntry>>

Dart’s Route.overlayEntries.

Source

fn install(self: Handle<Self>, app: &mut App)

Dart’s Route.install.

Source

fn did_push(self: Handle<Self>, app: &mut App) -> TickerFuture ⓘ

Dart’s Route.didPush.

Source

fn did_add(self: Handle<Self>, app: &mut App)

Dart’s Route.didAdd.

Source

fn did_replace(self: Handle<Self>, app: &mut App, old_route: Option<AnyRoute>)

Dart’s Route.didReplace.

Source

fn will_pop(self: Handle<Self>, app: &mut App) -> RoutePopDisposition

Dart’s Route.willPop.

Source

fn pop_disposition(self: Handle<Self>, app: &mut App) -> RoutePopDisposition

Dart’s Route.popDisposition.

Source

fn on_pop_invoked_with_result( self: Handle<Self>, app: &mut App, did_pop: bool, result: RouteResult, )

Dart’s Route.onPopInvokedWithResult.

Source

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

Dart’s Route.willHandlePopInternally.

Source

fn current_result(self: Handle<Self>, app: &App) -> RouteResult

Dart’s Route.currentResult.

Source

fn did_pop(self: Handle<Self>, app: &mut App, result: RouteResult) -> bool

Dart’s Route.didPop.

Source

fn did_complete(self: Handle<Self>, app: &mut App, result: RouteResult)

Dart’s Route.didComplete.

Source

fn did_pop_next(self: Handle<Self>, app: &mut App, next_route: AnyRoute)

Dart’s Route.didPopNext.

Source

fn did_change_next( self: Handle<Self>, app: &mut App, next_route: Option<AnyRoute>, )

Dart’s Route.didChangeNext.

Source

fn did_change_previous( self: Handle<Self>, app: &mut App, previous_route: Option<AnyRoute>, )

Dart’s Route.didChangePrevious.

Source

fn changed_internal_state(self: Handle<Self>, app: &mut App)

Dart’s Route.changedInternalState.

Source

fn changed_external_state(self: Handle<Self>, app: &mut App)

Dart’s Route.changedExternalState.

Source

fn dispose(self: Handle<Self>, app: &mut App)

Dart’s Route.dispose.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<R: Route> RouteBase for R