findOrNull method

T findOrNull(
  1. bool where(
    1. T
    )
)

Implementation

T findOrNull(bool Function(T) where) => firstWhere(where, orElse: () => null as T);