ListUtils class

Constructors

ListUtils()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

bubbleSort(List list) List
getLengthOrDefault(List? list, [int defaultValue = 0]) int
Return length of list if list is not null. Return default value (Default is 0) when the list is null. Using for nullable List of num.
heapSort(List a) List
quickSort(List list) List
sumBy<T>(Iterable<T> list, num pattern(T)) num
sumByInt<T>(Iterable<T> list, num pattern(T)) int