hasSortKeyWhere method

WidgetMatcher<Semantics> hasSortKeyWhere(
  1. MatchProp<SemanticsSortKey> match
)

Expects that sortKey of Semantics matches the condition in match.

Example usage:

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

Implementation

WidgetMatcher<Semantics> hasSortKeyWhere(MatchProp<SemanticsSortKey> match) {
  return hasDiagnosticProp<SemanticsSortKey>('sortKey', match);
}