hasColor method
Expects that color of IconButton equals (==) value
.
Example usage:
spot<IconButton>().existsOnce().hasColor(Colors.red);
Implementation
WidgetMatcher<IconButton> hasColor(Color? value) {
return hasDiagnosticProp<Color>(
'color', (it) => value == null ? it.isNull() : it.equals(value));
}