FindResult.hit constructor

const FindResult.hit({
  1. required UiNode node,
  2. required MatchSource matchSource,
  3. int attempts = 0,
  4. List<double> visitedOffsets = const [],
  5. bool ambiguous = false,
  6. List<UiNode> candidates = const <UiNode>[],
  7. double? runnerUpRatio,
  8. bool exactText = false,
})

Implementation

const FindResult.hit({
  required UiNode node,
  required MatchSource matchSource,
  int attempts = 0,
  List<double> visitedOffsets = const [],
  bool ambiguous = false,
  List<UiNode> candidates = const <UiNode>[],
  double? runnerUpRatio,
  bool exactText = false,
}) : this._(
        node: node,
        matchSource: matchSource,
        attempts: attempts,
        visitedOffsets: visitedOffsets,
        failure: null,
        ambiguous: ambiguous,
        candidates: candidates,
        runnerUpRatio: runnerUpRatio,
        exactText: exactText,
      );