whereFocusNode method

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

Example usage:

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

Implementation

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