hasTooltip method

WidgetMatcher<IconButton> hasTooltip(
  1. String? value
)

Expects that tooltip of IconButton equals (==) value.

Example usage:

spot<IconButton>().existsOnce().hasTooltip('foo');

Implementation

WidgetMatcher<IconButton> hasTooltip(String? value) {
  return hasDiagnosticProp<String>(
      'tooltip', (it) => value == null ? it.isNull() : it.equals(value));
}