ViewportAxisContextState class

A immutable value that is the subject of ViewportAxisContext.

It stores the information about the visible columns or rows in a defined moment given the visible scrollableRange of columns and rows.

The range is the one defined by VirtualizationCalculator and defines the scrollable part of an axis.

It also stores information about the frozen columns or rows derived from frozenRange.

Annotations

Constructors

ViewportAxisContextState({required Range scrollableRange, required Range frozenRange, required double extent, required double frozenExtent, required List<double> offsets, required List<double> frozenOffsets, required List<double> sizes, required List<double> frozenSizes, required Iterable<int> visibleIndices, required Iterable<int> visibleFrozenIndices})
const

Properties

extent double
The sum of the sizes of the visible columns or rows in the scrollableRange.
final
frozenExtent double
The sum of the sizes of the visible frozen columns or rows in the frozenRange.
final
frozenOffsets List<double>
Just like offsets but for the frozenRange
final
frozenRange → Range
The range representing the frozen columns or rows in the axis. Used to compute other fields in this state that are about the frozen area of the axis.
final
frozenSizes List<double>
The size of each visible frozen column or row in the frozenRange
final
hashCode int
The hash code for this object.
no setteroverride
offsets List<double>
The offset of each visible column or row in relation to the leading edge of the visible scrollableRange.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollableRange → Range
The range of visible columns or rows that was used to compute the other fields in this state that are about the scrollable area of the axis.
final
sizes List<double>
The size of each visible column or row in the scrollableRange
final
visibleFrozenIndices Iterable<int>
Just like visibleIndices but for the frozenRange
final
visibleIndices Iterable<int>
The indices of the headers in the scrollableRange that occupies at least 1px.
final

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.
override