ListExtensions<T> extension
- on
-
- List<
T>
- List<
Properties
- average → num
-
Available on List<
Returns the average of all elements in this list.T> , provided by the ListExtensions extensionno setter - maximum → T?
-
Available on List<
Returns the maximum element in this list.T> , provided by the ListExtensions extensionno setter - minimum → T?
-
Available on List<
Returns the minimum element in this list.T> , provided by the ListExtensions extensionno setter -
mostFrequent
→ List<
T> -
Available on List<
Returns the most frequent element(s) in this list.T> , provided by the ListExtensions extensionno setter - random → T
-
Available on List<
Returns a random element from this list.T> , provided by the ListExtensions extensionno setter - sum → num
-
Available on List<
Returns the sum of all elements in this list.T> , provided by the ListExtensions extensionno setter - toCsv → String
-
Available on List<
Serialize to CSV line(s).T> , provided by the ListExtensions extensionno setter - toJson → String?
-
Available on List<
Returns a parsed jsonT> , provided by the ListExtensions extensionstringof this list.no setter -
toSet
→ Set<
T> -
Available on List<
Returns a set with all the unique elements in this list (removes duplicates).T> , provided by the ListExtensions extensionno setter -
toStringList
→ List<
String> -
Available on List<
Convert each element to its toString().T> , provided by the ListExtensions extensionno setter
Methods
-
containsAll(
Iterable< T> other) → bool -
Available on List<
Returns true if this list contains all the elements inT> , provided by the ListExtensions extensionother. -
containsAny(
Iterable< T> other) → bool -
Available on List<
Returns true if this list contains any of the elements inT> , provided by the ListExtensions extensionother. -
difference(
Iterable< T> other) → List<T> -
Available on List<
Elements in this list not in other.T> , provided by the ListExtensions extension -
groupBy<
K> (K key(T element)) → Map< K, List< T> > -
Available on List<
Group into Map<key, List>.T> , provided by the ListExtensions extension -
removeNulls(
) → void -
Available on List<
Remove null elements.T> , provided by the ListExtensions extension -
safeGet(
int index) → T? -
Available on List<
Element at index or null if OOB.T> , provided by the ListExtensions extension -
symmetricDifference(
Iterable< T> other) → List<T> -
Available on List<
Elements in either but not both.T> , provided by the ListExtensions extension -
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<
Returns a column widget with this list as children.T> , provided by the ListExtensions extension -
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<
Returns a row widget with this list as children.T> , provided by the ListExtensions extension -
toStack(
{Key? key, AlignmentGeometry alignment = AlignmentDirectional.topStart, TextDirection? textDirection, StackFit fit = StackFit.loose, Clip clipBehavior = Clip.hardEdge}) → Stack -
Available on List<
Returns a stack widget with this list as children.T> , provided by the ListExtensions extension -
wrapWith(
Widget builder(T element)) → List< Widget> -
Available on List<
Wrap each element with a widget builder.T> , provided by the ListExtensions extension
Operators
-
operator +(
T element) → void -
Available on List<
Ads newT> , provided by the ListExtensions extensionelementto this list.