withTooltip method

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

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

Example usage:

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

Implementation

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