FirstOrNull<T> extension

on
  • Iterable<T>

Methods

firstOrNull([bool test(T)?]) → T?

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

Returns the first element of the list or null if empty.