build method

  1. @override
Widget build({
  1. required Widget child,
  2. required BuildContext context,
  3. required int columnIndex,
  4. required int rowIndex,
  5. required bool selected,
})
override

Builds the Widget for the cell located at columnIndex and rowIndex. The passed in child should be wrapped by whatever widgets this builder provides.

For headers, the rowIndex will always be -1.

Implementation

@override
Widget build({
  required Widget child,
  required BuildContext context,
  required int columnIndex,
  required int rowIndex,
  required bool selected,
}) => Material(
  color: super.color,
  child: _FlexSortHeaderCell(
    alignment: super.alignment,
    ascendingIcon: ascendingIcon,
    controller: controller,
    descendingIcon: descendingIcon,
    index: columnIndex,
    child: super.build(
      child: child,
      context: context,
      columnIndex: columnIndex,
      rowIndex: rowIndex,
      selected: selected,
    ),
  ),
);