ListExtensions<T> extension

on

Properties

average num

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

Returns the average of all elements in this list.
no setter
maximum → T?

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

Returns the maximum element in this list.
no setter
minimum → T?

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

Returns the minimum element in this list.
no setter
mostFrequent List<T>

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

Returns the most frequent element(s) in this list.
no setter
random → T

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

Returns a random element from this list.
no setter
sum num

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

Returns the sum of all elements in this list.
no setter
toCsv String

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

Serialize to CSV line(s).
no setter
toJson String?

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

Returns a parsed json string of this list.
no setter
toSet Set<T>

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

Returns a set with all the unique elements in this list (removes duplicates).
no setter
toStringList List<String>

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

Convert each element to its toString().
no setter

Methods

containsAll(Iterable<T> other) bool

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

Returns true if this list contains all the elements in other.
containsAny(Iterable<T> other) bool

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

Returns true if this list contains any of the elements in other.
difference(Iterable<T> other) List<T>

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

Elements in this list not in other.
groupBy<K>(K key(T element)) Map<K, List<T>>

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

Group into Map<key, List>.
removeNulls() → void

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

Remove null elements.
safeGet(int index) → T?

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

Element at index or null if OOB.
symmetricDifference(Iterable<T> other) List<T>

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

Elements in either but not both.
toColumn({Key? key, MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start, MainAxisSize mainAxisSize = MainAxisSize.max, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center, TextDirection? textDirection, VerticalDirection verticalDirection = VerticalDirection.down, TextBaseline? textBaseline, double spacing = 0.0}) Column

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

Returns a column widget with this list as children.
toRow({Key? key, MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start, MainAxisSize mainAxisSize = MainAxisSize.max, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center, TextDirection? textDirection, VerticalDirection verticalDirection = VerticalDirection.down, TextBaseline? textBaseline, double spacing = 0.0}) Row

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

Returns a row widget with this list as children.
toStack({Key? key, AlignmentGeometry alignment = AlignmentDirectional.topStart, TextDirection? textDirection, StackFit fit = StackFit.loose, Clip clipBehavior = Clip.hardEdge}) Stack

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

Returns a stack widget with this list as children.
wrapWith(Widget builder(T element)) List<Widget>

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

Wrap each element with a widget builder.

Operators

operator +(T element) → void

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

Ads new element to this list.