StickyNearestStrategy class

Collision strategy that searches near the previous offset first.

Implemented types

Constructors

StickyNearestStrategy({int directions = 24, double? radialStep, double hysteresisPx = 2})
const

Properties

directions → int
final
hashCode → int
The hash code for this object.
no setterinherited
hysteresisPx → double
final
radialStep → double?
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
place<T>({required MapCamera cam, required Size viewport, required List<CollisionNode<T>> nodes, required CollisionOptions options, required SpatialHashGrid grid, required Map<Key, Offset> previousOffsets}) → List<CollisionPlacement>
override
toString() → String
A string representation of this object.
inherited

Operators

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