FirstOrNull<T> extension

on

Methods

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