hasHeroTag method

WidgetMatcher<FloatingActionButton> hasHeroTag(
  1. Object? value
)

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

Example usage:

spot<FloatingActionButton>().existsOnce().hasHeroTag(Object());

Implementation

WidgetMatcher<FloatingActionButton> hasHeroTag(Object? value) {
  return hasDiagnosticProp<Object>(
      'heroTag', (it) => value == null ? it.isNull() : it.equals(value));
}