hasDisabledColorWhere method

WidgetMatcher<IconButton> hasDisabledColorWhere(
  1. MatchProp<Color> match
)

Expects that disabledColor of IconButton matches the condition in match.

Example usage:

spot<IconButton>().existsOnce().hasDisabledColorWhere((it) => it.equals(Colors.red));

Implementation

WidgetMatcher<IconButton> hasDisabledColorWhere(MatchProp<Color> match) {
  return hasDiagnosticProp<Color>('disabledColor', match);
}