hasFocusNodeWhere method
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);
}