FlexSortHeaderCellBuilder class

Builder to build headers for a FlexTable that allow for sorting a column.

Inheritance

Constructors

FlexSortHeaderCellBuilder({Alignment alignment = Alignment.centerLeft, Icon ascendingIcon = const Icon(Icons.arrow_downward, color: Colors.black, size: 16.0), Color? color, required FlexSortController controller, Icon descendingIcon = const Icon(Icons.arrow_upward, color: Colors.black, size: 16.0), int maxLines = 1, EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 8.0)})
Constructs the builder with the ascendingIcon to use when sorting ascending and the descendingIcon to use when sorting descending.
const

Properties

alignment → Alignment
finalinherited
ascendingIcon → Icon
Icon to use when sorting in ascending order.
final
color → Color?
finalinherited
controller → FlexSortController
The controller to use to trigger sort events.
final
descendingIcon → Icon
Icon to use when sorting in descending order.
final
hashCode → int
The hash code for this object.
no setterinherited
maxLines → int
finalinherited
padding → EdgeInsetsGeometry
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectedColor → Color?
finalinherited

Methods

build({required Widget child, required BuildContext context, required int columnIndex, required int rowIndex, required bool selected}) → Widget
Builds the Widget for the cell located at columnIndex and rowIndex. The passed in child should be wrapped by whatever widgets this builder provides.
override
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