NullableIterableExtensions<T> extension
- on
-
- Iterable<
T> ?
- Iterable<
Properties
- firstOrNull → T?
-
Available on Iterable<
Returns the first element.T> ?, provided by the NullableIterableExtensions extensionno setter - isEmpty → bool
-
Available on Iterable<
Whether this collection has no elements.T> ?, provided by the NullableIterableExtensions extensionno setter - isNotEmpty → bool
-
Available on Iterable<
Whether this collection has at least one element.T> ?, provided by the NullableIterableExtensions extensionno setter - lastOrNull → T?
-
Available on Iterable<
Returns the last element.T> ?, provided by the NullableIterableExtensions extensionno setter - length → int
-
Available on Iterable<
Returns the number of elements in Iterable.T> ?, provided by the NullableIterableExtensions extensionno setter
Methods
-
contains(
Object? element) → bool -
Available on Iterable<
Whether the collection contains an element equal toT> ?, provided by the NullableIterableExtensions extensionelement
. -
containsAll(
Iterable< Object?> elements) → bool -
Available on Iterable<
ReturnsT> ?, provided by the NullableIterableExtensions extensiontrue
if Iterable contains allelements
. -
containsAny(
Iterable< Object?> elements) → bool -
Available on Iterable<
ReturnsT> ?, provided by the NullableIterableExtensions extensiontrue
if Iterable contains any ofelements
. -
equalsTo(
Iterable< T> ? others) → bool -
Available on Iterable<
ReturnsT> ?, provided by the NullableIterableExtensions extensiontrue
if the internals of Iterable andothers
are compared and match. -
fill(
int length, T generator(int index)) → Iterable< T> -
Available on Iterable<
IfT> ?, provided by the NullableIterableExtensions extensionlength
is greater than the current number, returns Iterable filled with elements generated bygenerator
. -
firstWhereOrNull(
bool test(T item)) → T? -
Available on Iterable<
Returns the first element for which the return value ofT> ?, provided by the NullableIterableExtensions extensiontest
istrue
.