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§
Sourcefn overlay_entries(self: Handle<Self>, app: &App) -> Vec<Handle<OverlayEntry>>
fn overlay_entries(self: Handle<Self>, app: &App) -> Vec<Handle<OverlayEntry>>
Dart’s Route.overlayEntries.
Sourcefn did_push(self: Handle<Self>, app: &mut App) -> TickerFuture ⓘ
fn did_push(self: Handle<Self>, app: &mut App) -> TickerFuture ⓘ
Dart’s Route.didPush.
Sourcefn did_replace(self: Handle<Self>, app: &mut App, old_route: Option<AnyRoute>)
fn did_replace(self: Handle<Self>, app: &mut App, old_route: Option<AnyRoute>)
Dart’s Route.didReplace.
Sourcefn will_pop(self: Handle<Self>, app: &mut App) -> RoutePopDisposition
fn will_pop(self: Handle<Self>, app: &mut App) -> RoutePopDisposition
Dart’s Route.willPop.
Sourcefn pop_disposition(self: Handle<Self>, app: &mut App) -> RoutePopDisposition
fn pop_disposition(self: Handle<Self>, app: &mut App) -> RoutePopDisposition
Dart’s Route.popDisposition.
Sourcefn on_pop_invoked_with_result(
self: Handle<Self>,
app: &mut App,
did_pop: bool,
result: RouteResult,
)
fn on_pop_invoked_with_result( self: Handle<Self>, app: &mut App, did_pop: bool, result: RouteResult, )
Dart’s Route.onPopInvokedWithResult.
Sourcefn will_handle_pop_internally(self: Handle<Self>, app: &App) -> bool
fn will_handle_pop_internally(self: Handle<Self>, app: &App) -> bool
Dart’s Route.willHandlePopInternally.
Sourcefn current_result(self: Handle<Self>, app: &App) -> RouteResult
fn current_result(self: Handle<Self>, app: &App) -> RouteResult
Dart’s Route.currentResult.
Sourcefn did_pop(self: Handle<Self>, app: &mut App, result: RouteResult) -> bool
fn did_pop(self: Handle<Self>, app: &mut App, result: RouteResult) -> bool
Dart’s Route.didPop.
Sourcefn did_complete(self: Handle<Self>, app: &mut App, result: RouteResult)
fn did_complete(self: Handle<Self>, app: &mut App, result: RouteResult)
Dart’s Route.didComplete.
Sourcefn did_pop_next(self: Handle<Self>, app: &mut App, next_route: AnyRoute)
fn did_pop_next(self: Handle<Self>, app: &mut App, next_route: AnyRoute)
Dart’s Route.didPopNext.
Sourcefn did_change_next(
self: Handle<Self>,
app: &mut App,
next_route: Option<AnyRoute>,
)
fn did_change_next( self: Handle<Self>, app: &mut App, next_route: Option<AnyRoute>, )
Dart’s Route.didChangeNext.
Sourcefn did_change_previous(
self: Handle<Self>,
app: &mut App,
previous_route: Option<AnyRoute>,
)
fn did_change_previous( self: Handle<Self>, app: &mut App, previous_route: Option<AnyRoute>, )
Dart’s Route.didChangePrevious.
Sourcefn changed_internal_state(self: Handle<Self>, app: &mut App)
fn changed_internal_state(self: Handle<Self>, app: &mut App)
Dart’s Route.changedInternalState.
Sourcefn changed_external_state(self: Handle<Self>, app: &mut App)
fn changed_external_state(self: Handle<Self>, app: &mut App)
Dart’s Route.changedExternalState.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".