hasTitle method

WidgetMatcher<ListTile> hasTitle(
  1. Widget? value
)

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

Example usage:

spot<ListTile>().existsOnce().hasTitle(Container());

Implementation

WidgetMatcher<ListTile> hasTitle(Widget? value) {
  return hasDiagnosticProp<Widget>(
      'title', (it) => value == null ? it.isNull() : it.equals(value));
}