hasFocusNodeWhere method

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

Expects that focusNode of FloatingActionButton matches the condition in match.

Example usage:

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

Implementation

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