hasSelected method

WidgetMatcher<ListTile> hasSelected(
  1. bool? value
)

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

Example usage:

spot<ListTile>().existsOnce().hasSelected(true);

Implementation

WidgetMatcher<ListTile> hasSelected(bool? value) {
  return hasDiagnosticProp<bool>(
      'selected', (it) => value == null ? it.isNull() : it.equals(value));
}