MyfindFirstWhereOrNullExt<T> extension
Extension providing a findFirstWhereOrNull function to find the first element satisfying a condition.
This extension adds a method findFirstWhereOrNull to iterables, allowing you to find the first
element that satisfies the provided condition, or null if no such element exists.
- on
-
- Iterable<
T>
- Iterable<
Methods
-
findFirstWhereOrNull(
bool test(T element)) → T? -
Available on Iterable<
Finds the first element satisfying the provided condition, orT> , provided by the MyfindFirstWhereOrNullExt extensionnullif none is found.