hasFocusNodeWhere method

WidgetMatcher<IconButton> hasFocusNodeWhere(
  1. MatchProp<FocusNode> match
)

Expects that focusNode of IconButton matches the condition in match.

Example usage:

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

Implementation

WidgetMatcher<IconButton> hasFocusNodeWhere(MatchProp<FocusNode> match) {
  return hasDiagnosticProp<FocusNode>('focusNode', match);
}