WorldSteps class
A world guest's steps. Each gesture on the app — a person's or an agent's,
both arrive through the binding — is one step with an id of its own,
ben.3, and what its callbacks start runs in a zone naming it. Every HTTP
request the app opens carries the id in worldStepHeader, so a server
whose adapter reads it can say which tap each of its events came from,
and the world can join the two.
A request started outside the tap's callbacks — a fetch a rebuild began, a sync engine's upload loop — is given the last step instead, while that ended under window ago. Each request says which way it joined.
The one thing an app can undo: setting HttpOverrides.global itself
replaces this, and its requests go unstamped.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startWindow → Duration
-
How long after install a request with no step belongs to the app's
start,
ana.0, while nobody has touched the app yet.final - window → Duration
-
How long after a step ends a request with no step of its own still
belongs to it.
final
Methods
-
deliver<
T> (String verb, String target, T body(String step)) → T -
A step the world takes on this person's behalf — a code typed from an
SMS, a link opened from a mail — named as a tap's is,
ana.4.bodyruns inside it, and what the app starts after it, within window, joins it: a link reaches the app through the plugin's own stream, on no step of ours. -
dispatch(
PointerEvent event, void next(PointerEvent event)) → void -
Dispatches
eventthroughnext— the binding's ownhandlePointerEvent— inside its gesture's step. -
install(
) → void -
Stamps every request the app opens from now on, and opens the app's
start as its first step,
ana.0: what it sends before anyone touches it — its config, the user it resumes, its sync streams — belongs to that step, for startWindow or until the first gesture. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
stepFor(
) → (String, String)? - The step a request opened now belongs to, and how it was found.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited