find method

T? find(
  1. bool test(
    1. T element
    )
)

Implementation

T? find(bool Function(T element) test) {
  return firstWhereOrNull(test);
}