previousOnTop property
bool
get
previousOnTop
When true, the router renders the OUTGOING route in the top slot
(slot 0) and the INCOMING route underneath (slot 1). Use this for
effects where the previous page does the visible movement — e.g. a
physical page peeling off the surface and flying away to reveal what
was behind it. Default false: incoming on top, previous behind.
Regardless of this flag, the effect's data() should always describe
layers in slot order (data[0] for the top slot, data[1] for the
bottom slot), so the same list shape works for both conventions — the
flag only changes which route occupies each slot.
Implementation
bool get previousOnTop => false;