whereFocusNode method

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

Example usage:

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

Implementation

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