SwayzeHeaderState class

The value of SwayzeHeaderController.

A immutable state that holds information related to header of a table in an axis.

Annotations

Constructors

SwayzeHeaderState({required double defaultHeaderExtent, required int count, required Iterable<SwayzeHeaderData> headerData, required int frozenCount, int? elasticCount})
Creates a header state from an unsorted list of SwayzeHeaderData.

Properties

count → int
The amount of headers in this axis.
final
customSizedHeaders → Map<int, SwayzeHeaderData>
An unmodifiable map that indexes all custom sized headers of this axis.
latefinal
defaultHeaderExtent → double
The default extent of all headers in this axis. Header that are not indexed on customSizedHeaders will assume this extent.
final
elasticCount → int
The amount of headers in this axis that exist only due to table's elastic expansion.
final
extent → double
The total extent of this axis.
latefinal
frozenCount → int
The amount of headers frozen bound to the actual amount of headers in the axis.
no setter
frozenExtent → double
The total extent of the frozen headers in this axis.
latefinal
hasCustomSizes → bool
true if there is any custom sized header in this axis.
latefinal
hashCode → int
The hash code for this object.
no setteroverride
orderedCustomSizedIndices → Iterable<int>
The ordered indices of all custom sized header in this index.
latefinal
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
totalCount → int
The amount of headers in this axis, including real and elastic headers.
latefinal

Methods

copyWith({int? count, int? elasticCount, Iterable<SwayzeHeaderData>? headerData, int? frozenCount}) → SwayzeHeaderState
Copies the state overriding specific fields.
getHeaderExtentFor({required int index}) → double
get the extent of a specific header
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setHeaderExtent(int index, double extent) → SwayzeHeaderState
Set the extent of a specific header
toString() → String
A string representation of this object.
override

Operators

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