SortedListSet<T> class

A proto-Set implemented as a List sorted by compare.

Constructors

SortedListSet(int compare(T, T), List<T> data)

Properties

compare int Function(T, T)
read / write
data List<T>
read / write
first → T
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
isEmpty bool
read-only
last → T
read-only
length int
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

add(T value, {bool overwrite: true}) bool
clear() → void
find(T value) → T
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
remove(T value) bool
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited