singleWhere method

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

Implementation

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