hasFocusNodeWhere method

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

Expects that focusNode of OutlinedButton matches the condition in match.

Example usage:

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

Implementation

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