hasSelectedColor method

WidgetMatcher<ListTile> hasSelectedColor(
  1. Color? value
)

Expects that selectedColor of ListTile equals (==) value.

Example usage:

spot<ListTile>().existsOnce().hasSelectedColor(Colors.red);

Implementation

WidgetMatcher<ListTile> hasSelectedColor(Color? value) {
  return hasDiagnosticProp<Color>('selectedColor',
      (it) => value == null ? it.isNull() : it.equals(value));
}