DataTableSortIconBuilder typedef

DataTableSortIconBuilder = Widget Function(BuildContext context, bool visible, bool ascending)

Signature for a builder function that returns a widget to use as a sorting indicator icon in a DataTable header cell.

The visible parameter indicates whether the sort icon should be visible (i.e. whether the column is the active sort column).

The ascending parameter indicates whether the sort order is ascending.

Implementation

typedef DataTableSortIconBuilder = Widget Function(
  BuildContext context,
  bool visible,
  bool ascending,
);