ShapeWidgetContext class final

One immutable resolved slot snapshot and commands bounded to its owner.

The host supplies callbacks bound to this shape. It remains responsible for rechecking live publication, admission and edit ownership when called: the snapshot's enabled flag is a presentation hint, not a permission authority.

Constructors

ShapeWidgetContext({required ResolvedShape owner, required ResolvedShapeWidgetSlot slot, required bool readOnly, required EditResult onSetValues(Map<String, Object?> patch), required ShapeValueEdit onBeginValueEdit()})

Properties

enabled → bool
no setter
hashCode → int
The hash code for this object.
no setterinherited
owner → ResolvedShape
final
readOnly → bool
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
slot → ResolvedShapeWidgetSlot
final
values → Map<String, Object?>
Canonical content, including recursively immutable nested collections.
no setter

Methods

beginValueEdit() → ShapeValueEdit
A slider can preview repeatedly, then commit once or cancel the edit.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setValues(Map<String, Object?> patch) → EditResult
Performs setValues on the owner with patch.
toString() → String
A string representation of this object.
inherited

Operators

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