firstOrNull<T> static method
Implementation
static T? firstOrNull<T>(Iterable<T>? list, {bool filter(T input)?}) {
if (filter != null) {
list = list?.where(filter);
}
return list?.isNotEmpty == true ? list?.first : null;
}