firstOrNull<V> function
Returns first element in array, if it's empty returns null.
Implementation
V? firstOrNull<V>(Iterable<V> list) {
if (list.isEmpty) return null;
return list.first;
}
Returns first element in array, if it's empty returns null.
V? firstOrNull<V>(Iterable<V> list) {
if (list.isEmpty) return null;
return list.first;
}