hasTextColor method

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

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

Example usage:

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

Implementation

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