hasFocusNodeWhere method

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

Expects that focusNode of SelectableText matches the condition in match.

Example usage:

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

Implementation

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