onSort property

void Function(int column, bool ascending)? onSort
final

A sortable header was tapped: the column, and the direction the page should sort it in (the other way when it already sorts by it).

Implementation

final void Function(int column, bool ascending)? onSort;