hasSortKey method

WidgetMatcher<Semantics> hasSortKey(
  1. SemanticsSortKey? value
)

Expects that sortKey of Semantics equals (==) value.

Example usage:

spot<Semantics>().existsOnce().hasSortKey(OrdinalSortKey(1.0));

Implementation

WidgetMatcher<Semantics> hasSortKey(SemanticsSortKey? value) {
  return hasDiagnosticProp<SemanticsSortKey>(
      'sortKey', (it) => value == null ? it.isNull() : it.equals(value));
}