DataTableViewportMetrics class final
Current viewport geometry for a rendered DataTable.
DataTable uses these metrics to keep mouse hit selection aligned with the rows and columns that the render island actually painted.
Constructors
Properties
- bodyTop → int
-
final
-
columnStarts
→ List<
int> -
final
-
columnWidths
→ List<
int> -
final
- hasBodyRows → bool
-
Whether the current viewport contains hit-testable body rows.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tableWidth → int
-
final
- visibleFirst → int
-
final
- visibleRows → int
-
final
Methods
-
columnAt(
int localCol) → int? -
Returns the rendered column at
localCol, or null when the pointer is in a spacing gap or outside all column bodies. -
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
Constants
- empty → const DataTableViewportMetrics
- Empty viewport used before layout or when no rows are visible.