firstWhereOrNull method

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

Implementation

T? firstWhereOrNull(bool Function(T element) test) => where(test).firstOrNull;