hasTextColorWhere method

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

Expects that textColor of ListTile matches the condition in match.

Example usage:

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

Implementation

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