whereSortKey method

Creates a WidgetSelector that finds all Semantics where sortKey matches the condition.

Example usage:

spot<Semantics>().whereSortKey((it) => it.equals(OrdinalSortKey(1.0))).existsOnce();

Implementation

@useResult
WidgetSelector<Semantics> whereSortKey(MatchProp<SemanticsSortKey> match) {
  return withDiagnosticProp<SemanticsSortKey>('sortKey', match);
}