select method

T? select(
  1. bool test(
    1. T
    )
)

Implementation

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