Lists class Null safety

Available Extensions


hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]

Static Methods

append<T>(Iterable<T>? some, T item) List<T>
combine<T>(T item, Iterable<T>? more) List<T>
compact<T>(Iterable<T>? list) List<T>
compactEmpty(Iterable<String?>? list) List<String>
createIf<T>(bool condition, Factory<T> factory) → T?
expand<T>(Iterable<T>? some, Iterable<T>? more) List<T>
firstOrNull<T>(Iterable<T>? list, {bool filter(T input)?}) → T?
getOrNull<T>(Iterable<T>? items, int index) → T?
lastOrNull<T>(Iterable<T?> names, {bool filter(T? input)?}) → T?
listIf<T>(bool condition, ListFactory<T> factory) List<T>
listOf<T>(T item) List<T>
singleOrNull<T>(Iterable<T>? items) → T?
without<T>(List<T>? list, T? removed) Iterable<T>