findOne method

T? findOne(
  1. bool predicate(
    1. T
    )
)

Implementation

T? findOne(bool Function(T) predicate) {
  final map = _harnCollection.findOne((e) => predicate(fromMap(e)));
  final response = map != null ? fromMap(map) : null;
  harnLog.register({"findOne": response});
  return response;
}