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