withFocusNode method
Creates a WidgetSelector that finds all IconButton where focusNode equals (==) value
.
Example usage:
spot<IconButton>().withFocusNode(FocusNode()).existsOnce();
Implementation
@useResult
WidgetSelector<IconButton> withFocusNode(FocusNode? value) {
return withDiagnosticProp<FocusNode>(
'focusNode', (it) => value == null ? it.isNull() : it.equals(value));
}