FirstOrNull<T> extension

on
  • Iterable<T>

Methods

firstOrNull([bool test(T)?]) → T?
Returns the first element of the list or null if empty.