hasFocusNodeWhere method

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

Expects that focusNode of ElevatedButton matches the condition in match.

Example usage:

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

Implementation

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