firstWhere method

T firstWhere(
  1. bool function(
    1. T
    )
)

Returns the first element that satisfies the given predicate function.

Implementation

T firstWhere(bool Function(T) function) => value.firstWhere(function);