BoardUtils class

Utility functions for board operations

Constructors

BoardUtils()

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

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

Static Methods

calculateItemPosition(BuildContext? context, int itemIndex, List<double> itemHeights) Offset?
Calculates the position of an item within a list
calculateWidgetSize(BuildContext? context) Size?
Calculates the size of a widget
clearDebounceTimers() → void
Clears all debounce timers
debounce(VoidCallback function, Duration delay, {required String key}) → void
Debounces a function call
findClosestItemIndex(Offset position, List<Offset> itemPositions, List<Size> itemSizes) int
Finds the closest item index to a given position
isPointInRect(Offset point, Offset rectPosition, Size rectSize) bool
Checks if a point is within a rectangle
safeExecute<T>(T function(), {String? debugMessage}) → T?
Safely executes a function with error handling