onSearch method

void onSearch(
  1. String value
)

Implementation

void onSearch(String value) {
  itens = List<ModernFormBottomSheetModel<T>>.from(_allItens
      .where((element) => _removeSpecialCharacters(element.text.toLowerCase())
          .contains(_removeSpecialCharacters(value.toLowerCase())))
      .toList());
}