AssetTouchObserver class

Subscribes to a Canonical and emits one AssetTouch per pointer that can be resolved to a known asset category. Hosts wire this to UI to auto-swap mode/category and scroll-into-view.

Default behaviour ignores open / saveAs / revert (bulk events that would otherwise spam mode swaps); set patchOnly: false to receive all kinds.

Constructors

AssetTouchObserver({required Canonical canonical, bool patchOnly = true})

Properties

canonical Canonical
final
hashCode int
The hash code for this object.
no setterinherited
last AssetTouch?
Most recent touch, or null before any patch has landed. Useful for late subscribers that want to read the current sync target without waiting for the next event.
no setter
patchOnly bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
touches Stream<AssetTouch>
Broadcast stream of touches. Multiple listeners allowed.
no setter

Methods

dispose() Future<void>
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