firstWhereOrNull method
Implementation
Cue? firstWhereOrNull(bool Function(Cue element) test, {Cue Function()? orElse}) {
int length = this.length;
for (int i = 0; i < length; i++) {
Cue element = this[i];
if (test(element)) return element;
if (length != this.length) {
throw ConcurrentModificationError(this);
}
}
if (orElse != null) return orElse();
return null;
}