ALFBeamLocation class abstract
- Inheritance
-
- Object
- ChangeNotifier
- ALFBeamLocation
Constructors
-
ALFBeamLocation({required RouteInformation routeInformation, required List<
ALFBeamPage> pages})
Properties
- beamParameters → BeamParameters
-
Beam parameters used to beam to the current
state.no setterinherited - data ↔ Object?
-
An arbitrary data to be stored in this.
This will persist while navigating within this
BeamLocation.getter/setter pairinherited -
guards
→ List<
BeamGuard> -
Guards that will be executing
BeamGuard.checkwhen this gets beamed to.no setterinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
-
history
↔ List<
HistoryElement> -
The history of beaming for this.
getter/setter pairinherited
- isCurrent → bool
-
Whether this
BeamLocationis currently in use byBeamerDelegate.no setterinherited - mounted → bool
-
Whether
buildInitwas called.no setterinherited -
pages
↔ List<
ALFBeamPage> -
getter/setter pair
-
pathPatterns
→ List<
String> -
Represents the "form" of URI paths supported by this
BeamLocation.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state ↔ BeamState
-
A state of this
BeamLocation.getter/setter pairinherited - strictPathPatterns → bool
-
Whether
pathPatternsare strictly matched agains incoming URI.no setterinherited - transitionDelegate → TransitionDelegate?
-
A transition delegate to be used by Navigator.
no setterinherited
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
addToHistory(
RouteInformation routeInformation, [BeamParameters beamParameters = const BeamParameters(), bool tryPopping = true]) → void -
Adds another
HistoryElementtohistorylist. The history element is created from givenstateandbeamParameters.inherited -
builder(
BuildContext context, ) → Widget -
Gives the ability to wrap the
navigator.inherited -
buildInit(
BuildContext context) → void -
Initialize custom bindings for this
BeamLocationusing BuildContext. Similar tobuilder, but is not tied to Widget tree.inherited -
buildPages(
BuildContext context, BeamState state) → List< BeamPage> -
Creates and returns the list of pages to be built by the Navigator
when this
BeamLocationis beamed to or internally inferred. -
canHandle(
Uri uri) → bool -
Can this handle the
uribased on itspathPatterns.inherited -
create(
[RouteInformation? routeInformation, BeamParameters? beamParameters, bool tryPoppingHistory = true]) → void -
Creates the
stateand adds therouteInformationtohistory. This is called only once during the lifetime ofBeamLocation.inherited -
createState(
RouteInformation routeInformation) → BeamState -
How to create state from RouteInformation given by
BeamerDelegateand passed viaBeamerDelegate.locationBuilder.inherited -
dispose(
) → void -
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
inherited
-
disposeState(
) → void -
How to release any resources used by
state.inherited -
initState(
) → void -
What to do on state initialization.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
onUpdate(
) → void -
Called after
initStateand on eachupdate, i.e. whenever we navigate with thisBeamLocation.inherited -
removeFirstFromHistory(
) → HistoryElement? -
Removes the last
HistoryElementfromhistoryand returns it.inherited -
removeLastFromHistory(
) → HistoryElement? -
Removes the last
HistoryElementfromhistoryand returns it.inherited -
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
[BeamState copy(BeamState)?, RouteInformation? routeInformation, BeamParameters? beamParameters, bool rebuild = true, bool tryPoppingHistory = true]) → void -
Updates the
stateandhistory, depending on inputs.inherited -
updateState(
RouteInformation routeInformation) → void -
Updates the
stateupon receiving new RouteInformation, which usually happens afterBeamerDelegate.setNewRoutePath.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited