hasTileColorWhere method

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

Expects that tileColor of ListTile matches the condition in match.

Example usage:

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

Implementation

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