build method
Widget
build({
- required Widget child,
- required BuildContext context,
- required int columnIndex,
- required int rowIndex,
- 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,
),
),
);