popBeamLocation method
Beams to previous location in beamingHistory and removes the last location from history.
If there is no previous location, does nothing.
Returns the success, whether the currentBeamLocation was changed.
Implementation
bool popBeamLocation({
Object? data,
bool replaceRouteInformation = false,
}) {
if (!canPopBeamLocation) {
return false;
}
_disposeBeamLocation(currentBeamLocation);
beamingHistory.removeLast();
_beamLocationCandidate = beamingHistory.last;
update(
beamParameters: currentBeamLocation.history.last.parameters.copyWith(
transitionDelegate: beamBackTransitionDelegate,
),
data: data,
buildBeamLocation: false,
replaceRouteInformation: replaceRouteInformation,
);
return true;
}