FlexSortHeaderCellBuilder class
Builder to build headers for a FlexTable that allow for sorting a column.
- Inheritance
-
- Object
- FlexCellBuilder
- FlexHeaderCellBuilder
- FlexSortHeaderCellBuilder
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
ascendingIconto use when sorting ascending and thedescendingIconto 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
columnIndexandrowIndex. The passed inchildshould 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