first property

  1. @override
PatrolFinder get first
override

Returns a variant of this finder that only matches the first item found by this finder.

Implementation

@override
PatrolFinder get first {
  return _select(
    description: 'first',
    selector: (candidates) => candidates.take(1),
  );
}