firstWhere method

T firstWhere(
  1. Predicate<T> test, {
  2. T orElse()?,
})

Implementation

T firstWhere(Predicate<T> test, {T Function()? orElse}) => iter.firstWhere(test, orElse: orElse);