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