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