filter method
Sets the current filter and applies it to the FlexTable. If either the
index or value is set to null, this will disable the sorting.
Implementation
void filter(int? index, String? value) {
_filterIndex = index;
_filterValue = value;
_sortAndFilter();
}