hasFocusNodeWhere method
Expects that focusNode of TextButton matches the condition in match
.
Example usage:
spot<TextButton>().existsOnce().hasFocusNodeWhere((it) => it.equals(FocusNode()));
Implementation
WidgetMatcher<TextButton> hasFocusNodeWhere(MatchProp<FocusNode> match) {
return hasDiagnosticProp<FocusNode>('focusNode', match);
}