beamToReplacement method
void
beamToReplacement(
- BeamLocation<
RouteInformationSerializable> location, { - Object? data,
- BeamLocation<
RouteInformationSerializable> ? popTo, - TransitionDelegate? transitionDelegate,
- bool beamBackOnPop = false,
- bool popBeamLocationOnPop = false,
- bool stacked = true,
The same as beamTo, but replaces the last state in history,
i.e. removes it from the beamingHistory.last.history
and then does beamTo.
Implementation
void beamToReplacement(
BeamLocation location, {
Object? data,
BeamLocation? popTo,
TransitionDelegate? transitionDelegate,
bool beamBackOnPop = false,
bool popBeamLocationOnPop = false,
bool stacked = true,
}) {
removeLastHistoryElement();
beamTo(
location,
data: data,
popTo: popTo,
transitionDelegate: transitionDelegate,
beamBackOnPop: beamBackOnPop,
popBeamLocationOnPop: popBeamLocationOnPop,
stacked: stacked,
replaceRouteInformation: true,
);
}