SpatialHashing<T> class

Data structure for spatial hashing to get widgets to be built quickly based on their bounds in a 2D grid.

Constructors

SpatialHashing({required Size cellSize})

Properties

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

Methods

clear() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
query(Rect area) → List<T>
remove(T id) → void
set(T id, Rect bounds) → void
toString() → String
A string representation of this object.
inherited

Operators

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