withHint method

  1. @useResult
WidgetSelector<Semantics> withHint(
  1. String? value
)

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

Example usage:

spot<Semantics>().withHint('foo').existsOnce();

Implementation

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