hasSelectedColorWhere method

WidgetMatcher<ListTile> hasSelectedColorWhere(
  1. MatchProp<Color> match
)

Expects that selectedColor of ListTile matches the condition in match.

Example usage:

spot<ListTile>().existsOnce().hasSelectedColorWhere((it) => it.equals(Colors.red));

Implementation

WidgetMatcher<ListTile> hasSelectedColorWhere(MatchProp<Color> match) {
  return hasDiagnosticProp<Color>('selectedColor', match);
}