SortedSearchList<T, S> class
Constructors
-
SortedSearchList({required Comparator<
T> comparator, required S converter(T)})
Properties
-
comparator
↔ Comparator<
T> -
getter/setter pair
- converter ↔ S Function(T)
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
list
→ List<
S> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
generateList(
Iterable< T> values) → void -
Removes the content in the list and then places the sorted
values
inside instead. -
generateSearchList(
{String? searchTerm, required Iterable< T> values, required SearchMeUp<T> searchMeUp}) → void -
Removes the content in the list and generates a new one in the correct order based on comparator with the given
values
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sortThenAdd(
Iterable< T> items) → void -
Will sort the
items
and then add them to the list -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited