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