hasSelectedWhere method

WidgetMatcher<ListTile> hasSelectedWhere(
  1. MatchProp<bool> match
)

Expects that selected of ListTile matches the condition in match.

Example usage:

spot<ListTile>().existsOnce().hasSelectedWhere((it) => it.isTrue());

Implementation

WidgetMatcher<ListTile> hasSelectedWhere(MatchProp<bool> match) {
  return hasDiagnosticProp<bool>('selected', match);
}