Interactor class

Resolves symbolic targets, gates hittable, dispatches to the backend, and wraps everything in an ActionResult.

Constructors

Interactor({required InteractionBackend backend, required CoordinateResolver resolver})

Properties

backend → InteractionBackend
final
hashCode → int
The hash code for this object.
no setterinherited
refuseNotHittable ↔ bool?
True refuses any non-hittable target, false never refuses; null (default) refuses only when Flutter's real hit test missed.
getter/setter pair
rereadScene ↔ Future<Scene> Function()?
Reads the scene again; a target whose inspector id went stale is resolved against it once before the action is refused.
getter/setter pair
resolver → CoordinateResolver
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run(Scene scene, Action action) → Future<ActionResult>
toString() → String
A string representation of this object.
inherited

Operators

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