UniqueList<E>  class 
 
An implementation of List that enforces all values be unique.
- Implemented types
 - 
    
- List<
E>  
 - List<
 - Available extensions
 
Constructors
- UniqueList({bool strict = false, bool nullable = true, bool growable = true})
 - Constructs a new UniqueList.
 - UniqueList.empty({bool growable = false, bool strict = false, bool nullable = true})
 - 
          Creates a new empty list.
            factory
 - UniqueList.filled(int length, {bool growable = true, bool strict = false})
 - 
          Creates a list of the given length filled with 
nullvalues.factory - 
          UniqueList.from(Iterable<
E> elements, {bool growable = true, bool strict = false, bool nullable = true}) - 
          Creates a list containing all 
elements.factory - 
          UniqueList.generate(int length, Generator<
E> generator, {bool growable = true, bool strict = false, bool nullable = true}) - 
          Generates a list of values.
            factory
 - 
          UniqueList.of(Iterable<
E> elements, {bool growable = true, bool strict = false, bool nullable = true}) - 
          Creates a list from 
elements.factory - UniqueList.strict()
 - 
          Creates a new UniqueList that throws DuplicateValueErrors if a value
is added to the list already exists in the list.
            factory
 - 
          UniqueList.unmodifiable(Iterable<
E> elements, {bool nullable = true}) - 
          Creates an unmodifiable list containing all 
elements.factory 
Properties
- 
  elements
  → List<
E>  - 
  The underlying List containing all of the elements in this list.
  finalinherited
 - first ↔ E
 - 
  The first element.
  getter/setter pairinherited-getter
 - firstOrNull → T?
 - 
      
Available on Iterable<
The first element of this iterator, orT> , provided by the IterableExtensions extensionnullif the iterable is empty.no setter - growable → bool
 - 
  If 
true, this list is growable; otherwise, this is a fixed-length list.finalinherited - hashCode → int
 - 
  The hash code for this object.
  no setterinherited
 - 
  indexed
  → Iterable<
(int, T)>  - 
      
Available on Iterable<
Pairs of elements of the indices and elements of this iterable.T> , provided by the IterableExtensions extensionno setter - isEmpty → bool
 - 
  Whether this collection has no elements.
  no setterinherited
 - isNotEmpty → bool
 - 
  Whether this collection has at least one element.
  no setterinherited
 - 
  iterator
  → Iterator<
E>  - 
  A new 
Iteratorthat allows iterating the elements of thisIterable.no setterinherited - last ↔ E
 - 
  The last element.
  getter/setter pairinherited-getter
 - lastOrNull → T?
 - 
      
Available on Iterable<
The last element of this iterable, orT> , provided by the IterableExtensions extensionnullif the iterable is empty.no setter - length ↔ int
 - 
  The number of objects in this list.
  getter/setter pairinherited
 - 
  nonNulls
  → Iterable<
T>  - 
      
Available on Iterable<
The non-T?> , provided by the NullableIterableExtensions extensionnullelements of this iterable.no setter - nullable → bool
 - 
  If 
true, the list may contain multiple instances ofnull, otherwise,nullwill be treated like any other value and only one instance ofnullmay be contained in the list.final - 
  reversed
  → Iterable<
E>  - 
  An Iterable of the objects in this list in reverse order.
  no setterinherited
 - runtimeType → Type
 - 
  A representation of the runtime type of the object.
  no setterinherited
 - single → E
 - 
  Checks that this iterable has only one element, and returns that element.
  no setterinherited
 - singleOrNull → T?
 - 
      
Available on Iterable<
The single element of this iterator, orT> , provided by the IterableExtensions extensionnull.no setter - strict → bool
 - 
  If 
true, a DuplicateValueError will be thrown when a value is added to the list that already exists.final - 
  toJS
  → JSArray<
T>  - 
      
Available on List<
Converts this List to a JSArray by either casting, unwrapping, or cloning the List.T> , provided by the ListToJSArray extensionno setter - 
  toJSProxyOrRef
  → JSArray<
T>  - 
      
Available on List<
Converts this List to a JSArray by either casting, unwrapping, or proxying the List.T> , provided by the ListToJSArray extensionno setter - 
  wait
  → Future<
List< T> > - 
      
Available on Iterable<
Waits for futures in parallel.Future< , provided by the FutureIterable extensionT> >no setter 
Methods
- 
  add(
E value) → void  - 
  Adds 
valueto the end of this list, extending the length by one. - 
  addAll(
Iterable< E> iterable) → void - 
  Appends all objects of 
iterableto the end of this list. - 
  any(
Test< E> test) → bool - 
  Checks whether any element of this iterable satisfies 
test.inherited - 
  asMap(
) → Map< int, E>  - 
  An unmodifiable Map view of this list.
  inherited
 - 
  asNameMap(
) → Map< String, T>  - 
      
Available on Iterable<
Creates a map from the names of enum values to the values.T> , provided by the EnumByName extension - 
  byName(
String name) → T  - 
      
Available on Iterable<
Finds the enum value in this list with nameT> , provided by the EnumByName extensionname. - 
  cast<
R> () → UniqueList< R>  - 
  Returns a view of this list as a list of 
Rinstances.override - 
  clear(
) → void  - 
  Removes all objects from this list; the length of the list becomes zero.
  inherited
 - 
  contains(
Object? element) → bool  - 
  Whether the collection contains an element equal to 
element.inherited - 
  elementAt(
int index) → E  - 
  Returns the 
indexth element.inherited - 
  elementAtOrNull(
int index) → T?  - 
      
Available on Iterable<
The element at positionT> , provided by the IterableExtensions extensionindexof this iterable, ornull. - 
  every(
Test< E> test) → bool - 
  Checks whether every element of this iterable satisfies 
test.inherited - 
  expand<
T> (Expand< T, E> f) → Iterable<T>  - 
  Expands each element of this Iterable into zero or more elements.
  inherited
 - 
  fillRange(
int start, int end, [E? fillValue]) → void  - 
  Overwrites a range of elements with 
fillValue. - 
  firstWhere(
Test< E> test, {OrElse<E> ? orElse}) → E - 
  The first element that satisfies the given predicate 
test.inherited - 
  fold<
T> (T initialValue, Fold< T, E> combine) → T - 
  Reduces a collection to a single value by iteratively combining each
element of the collection with an existing value
  inherited
 - 
  followedBy(
Iterable< E> other) → Iterable<E>  - 
  Returns the lazy concatentation of this iterable and 
other. - 
  forEach(
ForEach< E> f) → void - 
  Invokes 
actionon each element of this iterable in iteration order.inherited - 
  getRange(
int start, int end) → Iterable< E>  - 
  Creates an Iterable that iterates over a range of elements.
  inherited
 - 
  indexOf(
E element, [int start = 0]) → int  - 
  The first index of 
elementin this list.inherited - 
  indexWhere(
Test< E> test, [int start = 0]) → int - 
  The first index in the list that satisfies the provided 
test.inherited - 
  insert(
int index, E element) → void  - 
  Inserts the object at position 
indexin this list. - 
  insertAll(
int index, Iterable< E> iterable) → void - 
  Inserts all objects of 
iterableat positionindexin this list. - 
  join(
[String separator = '']) → String  - 
  Converts each element to a String and concatenates the strings.
  inherited
 - 
  lastIndexOf(
E element, [int? start]) → int  - 
  The last index of 
elementin this list.inherited - 
  lastIndexWhere(
Test< E> test, [int? start]) → int - 
  The last index in the list that satisfies the provided 
test.inherited - 
  lastWhere(
Test< E> test, {OrElse<E> ? orElse}) → E - 
  The last element that satisfies the given predicate 
test.inherited - 
  map<
T> (Mapper< T, E> f) → Iterable<T>  - 
  The current elements of this iterable modified by 
toElement.inherited - 
  noSuchMethod(
Invocation invocation) → dynamic  - 
  Invoked when a nonexistent method or property is accessed.
  inherited
 - 
  reduce(
Combine< E> combine) → E - 
  Reduces a collection to a single value by iteratively combining elements
of the collection using the provided function.
  inherited
 - 
  remove(
Object? value) → bool  - 
  Removes the first occurrence of 
valuefrom this list.inherited - 
  removeAt(
int index) → E  - 
  Removes the object at position 
indexfrom this list.inherited - 
  removeLast(
) → E  - 
  Removes and returns the last object in this list.
  inherited
 - 
  removeRange(
int start, int end) → void  - 
  Removes a range of elements from the list.
  inherited
 - 
  removeWhere(
Test< E> test) → void - 
  Removes all objects from this list that satisfy 
test.inherited - 
  replaceRange(
int start, int end, Iterable< E> replacement) → void - 
  Removes the objects in the range 
startinclusive toendexclusive and inserts the contents ofreplacementin its place. - 
  retainWhere(
Test< E> test) → void - 
  Removes all objects from this list that fail to satisfy 
test.inherited - 
  setAll(
int index, Iterable< E> iterable) → void - 
  Overwrites objects of 
thiswith the objects ofiterable, starting at positionindexin this list. - 
  setRange(
int start, int end, Iterable< E> iterable, [int skipCount = 0]) → void - 
  Copies the objects of 
iterable, skippingskipCountobjects first, into the rangestart, inclusive, toend, exclusive, of the list. - 
  shuffle(
[Random? random]) → void  - 
  Shuffles the elements of this list randomly.
  inherited
 - 
  singleWhere(
Test< E> test, {OrElse<E> ? orElse}) → E - 
  The single element that satisfies 
test.inherited - 
  skip(
int count) → Iterable< E>  - 
  Creates an Iterable that provides all but the first 
countelements.inherited - 
  skipWhile(
Test< E> test) → Iterable<E>  - 
  Creates an 
Iterablethat skips leading elements whiletestis satisfied.inherited - 
  sort(
[Compare< E> ? compare]) → void - 
  Sorts this list according to the order specified by the 
comparefunction.inherited - 
  sublist(
int start, [int? end]) → UniqueList< E>  - 
  Returns a new list containing the elements between 
startandend. - 
  take(
int count) → Iterable< E>  - 
  Creates a lazy iterable of the 
countfirst elements of this iterable.inherited - 
  takeWhile(
Test< E> test) → Iterable<E>  - 
  Creates a lazy iterable of the leading elements satisfying 
test.inherited - 
  toList(
{bool growable = true}) → List< E>  - 
  Creates a List containing the elements of this Iterable.
  inherited
 - 
  toSet(
) → Set< E>  - 
  Creates a Set containing the same elements as this iterable.
  inherited
 - 
  toString(
) → String  - 
  A string representation of this object.
  inherited
 - 
  toUniqueList(
{bool growable = true, bool nullable = true, bool strict = false}) → UniqueList< E>  - 
      
Available on Iterable<
Creates an UniqueList containing the elements of this iterable.E> , provided by the ToUniqueList extension - 
  toUniqueList(
{bool growable = true, bool strict = true, bool nullable = true}) → UniqueList< E>  - Creates a UniqueList containing the elements of this list.
 - 
  where(
Test< E> test) → Iterable<E>  - 
  Creates a new lazy Iterable with all elements that satisfy the
predicate 
test.inherited - 
  whereType<
T> () → Iterable< T>  - 
  Creates a new lazy Iterable with all elements that have type 
T.inherited 
Operators
- 
  operator +(
List< E> other) → UniqueList<E>  - 
  Returns the concatenation of this list and 
other. - 
  operator ==(
Object other) → bool  - 
  The equality operator.
  inherited
 - 
  operator [](
int index) → E  - 
  The object at the given 
indexin the list.inherited - 
  operator []=(
int index, E value) → void  - 
  Sets the value at the given 
indexin the list tovalueor throws a RangeError ifindexis out of bounds.