EntityLogic<T> class abstract

Encapsulates type-specific logic for InteractiveController.

Implementers

Constructors

EntityLogic()

Properties

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

Methods

createAddOp(T item) Op<T>
createDragEndOp(T item, LatLng origin, LatLng current) Op<T>?
Convert a generic drag end into a concrete commit operation.
createRemoveOp(Key key) Op<T>
createUpdateOp(T oldItem, T newItem, {int index = -1}) Op<T>
ensureHasKey(T item) → void
getBounds(T item) → LatLngBounds
Get the bounds of the item for spatial indexing.
getItemKey(T item) Key?
hasSpatialChange(T oldItem, T newItem) bool
Returns true if the change between a and b is spatial (position/geometry).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onDragUpdate(T item, LatLng origin, LatLng current) → void
Handle drag updates (e.g., debounced position change callbacks).
onInteraction(T item, InteractionType type) → void
Handle interaction side-effects (e.g., internal model callbacks).
toString() String
A string representation of this object.
inherited
updateIndex(SpatialIndex<T> index, Op<T> op, T? getItem(Key)) → void
Updates the spatial index based on the operation. getItem allows retrieving the current state of an item by key (useful for Move ops).

Operators

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