WebDataTableSource constructor
WebDataTableSource({})
Implementation
WebDataTableSource({
required this.columns,
required this.rows,
this.onTapRow,
this.onSelectRows,
this.sortColumnName,
this.sortAscending = true,
this.primaryKeyName,
this.filterTexts,
this.selectedRowKeys = const [],
}) {
if (onSelectRows != null) {
assert(primaryKeyName != null);
}
_rows = [...rows];
_executeFilter();
_executeSort();
}