hasFocusNode method

WidgetMatcher<IconButton> hasFocusNode(
  1. FocusNode? value
)

Expects that focusNode of IconButton equals (==) value.

Example usage:

spot<IconButton>().existsOnce().hasFocusNode(FocusNode());

Implementation

WidgetMatcher<IconButton> hasFocusNode(FocusNode? value) {
  return hasDiagnosticProp<FocusNode>(
      'focusNode', (it) => value == null ? it.isNull() : it.equals(value));
}