withDisabledColor method

  1. @useResult
WidgetSelector<IconButton> withDisabledColor(
  1. Color? value
)

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));
}