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

Methods

findFirstWhereOrNull(bool test(T element)) → T?

Available on Iterable<T>, provided by the MyfindFirstWhereOrNullExt extension

Finds the first element satisfying the provided condition, or null if none is found.