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