whereDisabledColor method

  1. @useResult
WidgetSelector<IconButton> whereDisabledColor(
  1. MatchProp<Color> match
)

Creates a WidgetSelector that finds all IconButton where disabledColor matches the condition.

Example usage:

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

Implementation

@useResult
WidgetSelector<IconButton> whereDisabledColor(MatchProp<Color> match) {
  return withDiagnosticProp<Color>('disabledColor', match);
}