hasDisabledColor method

WidgetMatcher<IconButton> hasDisabledColor(
  1. Color? value
)

Expects that disabledColor of IconButton equals (==) value.

Example usage:

spot<IconButton>().existsOnce().hasDisabledColor(Colors.red);

Implementation

WidgetMatcher<IconButton> hasDisabledColor(Color? value) {
  return hasDiagnosticProp<Color>('disabledColor',
      (it) => value == null ? it.isNull() : it.equals(value));
}