hasFocusNode method

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

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

Example usage:

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

Implementation

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