FlexSortHeaderCellBuilder constructor

const FlexSortHeaderCellBuilder({
  1. Alignment alignment = Alignment.centerLeft,
  2. Icon ascendingIcon = const Icon(Icons.arrow_downward, color: Colors.black, size: 16.0),
  3. Color? color,
  4. required FlexSortController controller,
  5. Icon descendingIcon = const Icon(Icons.arrow_upward, color: Colors.black, size: 16.0),
  6. int maxLines = 1,
  7. 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.

This also requires the controller to use to trigger sort events.

Implementation

const FlexSortHeaderCellBuilder({
  super.alignment,
  this.ascendingIcon = const Icon(
    Icons.arrow_downward,
    color: Colors.black,
    size: 16.0,
  ),
  super.color,
  required this.controller,
  this.descendingIcon = const Icon(
    Icons.arrow_upward,
    color: Colors.black,
    size: 16.0,
  ),
  super.maxLines,
  super.padding,
});