RouteTransition class final
A composable route transition. enter is where the incoming screen starts, exit where the covered one ends; closing plays them in reverse unless popEnter (where the screen revealed by the pop starts) or popExit (where the closing screen goes) are given. A preset fills in what's left null. JSON: an object, or a bare preset name.
- Annotations
-
- @immutable
Constructors
- RouteTransition({RouteTransitionPreset? preset, TransitionSide? enter, TransitionSide? exit, TransitionSide? popEnter, TransitionSide? popExit, int? durationMs, int? reverseDurationMs, Color? barrierColor, bool? opaque, RouteSwipeBack? swipeBack, RouteDismiss? dismiss})
-
const
Properties
- barrierColor → Color?
-
Drawn behind a modal (or a see-through page) while it's open. Null:
none on pages, the dialog's own on modals.
final
- dismiss → RouteDismiss?
-
Null: the preset's (none without one).
final
- durationMs → int?
-
Null: the preset's (300 without one).
final
- enter → TransitionSide?
-
final
- exit → TransitionSide?
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- opaque → bool?
-
Whether the screen hides the one below once open. Null: the preset's
(true without one).
final
- popEnter → TransitionSide?
-
final
- popExit → TransitionSide?
-
final
- preset → RouteTransitionPreset?
-
final
- resolved → RouteTransition
-
This with preset's values filled in where it leaves them null: every
side but the pop sides is set.
no setter
- resolvedDurationMs → int
-
Milliseconds it takes, resolved.
no setter
- resolvedReverseDurationMs → int
-
Milliseconds closing takes, resolved.
no setter
- reverseDurationMs → int?
-
Null: durationMs.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- swipeBack → RouteSwipeBack?
-
Null: the preset's (RouteSwipeBack.platform without one).
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Json -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromJson(
Object? json) → RouteTransition? - Decodes a transition: an object, or a bare preset name. Null for anything else.
-
presetTransition(
RouteTransitionPreset preset) → RouteTransition -
The concrete transition of
preset.