firstWhere method

E firstWhere(
  1. bool test(
    1. E element
    ), {
  2. E orElse()?,
})

Implementation

E firstWhere(bool Function(E element) test, {E Function()? orElse}) =>
    value.firstWhere(test, orElse: orElse);