withTooltip method
Creates a WidgetSelector that finds all IconButton where tooltip equals (==) value
.
Example usage:
spot<IconButton>().withTooltip('foo').existsOnce();
Implementation
@useResult
WidgetSelector<IconButton> withTooltip(String? value) {
return withDiagnosticProp<String>(
'tooltip', (it) => value == null ? it.isNull() : it.equals(value));
}