withSelected method
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));
}