whereFocusNode method

Creates a WidgetSelector that finds all SelectableText where focusNode matches the condition.

Example usage:

spot<SelectableText>().whereFocusNode((it) => it.equals(FocusNode())).existsOnce();

Implementation

@useResult
WidgetSelector<SelectableText> whereFocusNode(MatchProp<FocusNode> match) {
  return withDiagnosticProp<FocusNode>('focusNode', match);
}