PolylineHitTester class

Constructors

PolylineHitTester(MapCamera cam, {double hitTolerance = 24.0, SpatialIndex<InteractivePolyline<Object>>? index})

Properties

cam → MapCamera
final
hashCode int
The hash code for this object.
no setterinherited
hitTolerance double
final
index SpatialIndex<InteractivePolyline<Object>>?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

hit(List<InteractivePolyline<Object>> polylines, Offset p, {Key? preferKey}) InteractivePolyline<Object>?
Returns the index of the hit polyline, or null. preferKey (active/hover) is tested first to feel "sticky" when overlapping.
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