hasTileColor method

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

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

Example usage:

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

Implementation

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