updateTypeSearch method
Implementation
updateTypeSearch(TypeSearch? newType) {
if (newType != null && newType != typeSearch) {
page = 1;
typeSearch = newType;
if (filter.text.trim().isNotEmpty) {
filterChanged(reload: true);
} else {
setDataSource();
}
}
}