HintMachine class

Pure tour state machine — all transition policy in one place, zero widget imports and zero knowledge of the registry/overlay.

The only external dependency is the injected targetPresent predicate on dispatch, by which the machine decides: advance straight to the active step, or go into waiting for the target. In tests this is a presence map; in the controller it is registry.lookup(id) != null.

Constructors

HintMachine({HintState? initialState})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state HintState
no setter

Methods

dispatch(HintEvent event, {bool targetPresent(String targetId)?}) HintTransition
The single entry point. Returns the transition and applies it to the internal state.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited