firstOrNull method
Implementation
E? firstOrNull({bool f(E e)?}) {
if (f == null) return this.isEmpty ? null : first;
for (var value in this) {
if (f(value)) return value;
}
return null;
}
E? firstOrNull({bool f(E e)?}) {
if (f == null) return this.isEmpty ? null : first;
for (var value in this) {
if (f(value)) return value;
}
return null;
}