hasTitleWhere method

WidgetMatcher<ListTile> hasTitleWhere(
  1. MatchProp<Widget> match
)

Expects that title of ListTile matches the condition in match.

Example usage:

spot<ListTile>().existsOnce().hasTitleWhere((it) => it.equals(Container()));

Implementation

WidgetMatcher<ListTile> hasTitleWhere(MatchProp<Widget> match) {
  return hasDiagnosticProp<Widget>('title', match);
}