withSelected method

  1. @useResult
WidgetSelector<Semantics> withSelected(
  1. bool? value
)

Creates a WidgetSelector that finds all Semantics where selected equals (==) value.

Example usage:

spot<Semantics>().withSelected(true).existsOnce();

Implementation

@useResult
WidgetSelector<Semantics> withSelected(bool? value) {
  return withDiagnosticProp<bool>(
      'selected', (it) => value == null ? it.isNull() : it.equals(value));
}