hasIconColorWhere method

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

Expects that iconColor of ListTile matches the condition in match.

Example usage:

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

Implementation

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