optionsWithFilter property

List<WSelectOption> optionsWithFilter

Implementation

List<WSelectOption> get optionsWithFilter => _filterText != null
    ? options
        .where((el) => el.compareTo == null
            ? el.label.toLowerCase().contains(_filterText.toLowerCase())
            : el.compareTo(_filterText))
        .toList()
    : options;