hasTooltip method

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

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

Example usage:

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

Implementation

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