ExtList<T> extension

on

Methods

addIfNotNull(T? value) → void

Available on List<T>, provided by the ExtList extension

Adds value to the list only if it is not null.
addToSet(T value) → void

Available on List<T>, provided by the ExtList extension

Adds value to the list only if it does not already exist.
searchText(String text, [String mapper(T)?]) List<T>

Available on List<T>, provided by the ExtList extension

Performs a text-based search on the list.
toSentence({int? maxToShow, String separator = ",", String lastSeparator = "&", String suffix = "others"}) String

Available on List<T>, provided by the ExtList extension

Converts the list into a human-readable sentence.

Operators

operator *(int count) List<T>

Available on List<T>, provided by the ExtList extension

Repeats this list count times.