BeamerExtensions extension
Some beamer-specific extension methods on BuildContext.
- on
Properties
-
beamingHistory
→ List<
BeamLocation< RouteInformationSerializable> > -
The history of
BeamLocation
s, each holding its BeamLocation.history.no setter - canBeamBack → bool
-
Whether it is possible to beamBack,
i.e. there is more than 1 entry in
beamingHistoryCompleteLength
.no setter - canPopBeamLocation → bool
-
Whether it is possible to popBeamLocation,
i.e. there is more than 1 location in beamingHistory.
no setter
-
currentBeamLocation
→ BeamLocation<
RouteInformationSerializable> -
A BeamLocation that is currently responsible for providing a page stack
via BeamLocation.buildPages and holds the current BeamState.
no setter
-
currentBeamPages
→ List<
BeamPage> -
currentBeamLocation's "effective" pages, the ones that were built.
no setter
Methods
-
beamBack(
{Object? data}) → bool - Beams to previous entry in beamingHistory. and removes the last entry from history.
-
beamTo(
BeamLocation< RouteInformationSerializable> location, {Object? data, BeamLocation<RouteInformationSerializable> ? popTo, TransitionDelegate? transitionDelegate, bool beamBackOnPop = false, bool popBeamLocationOnPop = false, bool stacked = true, bool replaceRouteInformation = false}) → void - Beams to a specific, manually configured BeamLocation.
-
beamToNamed(
String uri, {Object? routeState, Object? data, String? popToNamed, TransitionDelegate? transitionDelegate, bool beamBackOnPop = false, bool popBeamLocationOnPop = false, bool stacked = true, bool replaceRouteInformation = false}) → void - Configures and beams to a BeamLocation that supports uri within its BeamLocation.pathPatterns.
-
beamToReplacement(
BeamLocation< RouteInformationSerializable> location, {Object? data, BeamLocation<RouteInformationSerializable> ? popTo, TransitionDelegate? transitionDelegate, bool beamBackOnPop = false, bool popBeamLocationOnPop = false, bool stacked = true}) → void -
beamToReplacementNamed(
String uri, {Object? routeState, Object? data, String? popToNamed, TransitionDelegate? transitionDelegate, bool beamBackOnPop = false, bool popBeamLocationOnPop = false, bool stacked = true}) → void -
popBeamLocation(
) → bool - Beams to previous location in beamingHistory and removes the last location from history.
-
popToNamed(
String uri, {Object? routeState, Object? data, String? popToNamed, bool beamBackOnPop = false, bool popBeamLocationOnPop = false, bool stacked = true, bool replaceRouteInformation = false}) → void -
Calls beamToNamed with a ReverseTransitionDelegate and tries to
remove everything from history after entry corresponding to
uri
, as if doing a pop way back to that state, if it exists in history.