hasMaterialTapTargetSizeWhere method

WidgetMatcher<FloatingActionButton> hasMaterialTapTargetSizeWhere(
  1. MatchProp<MaterialTapTargetSize> match
)

Expects that materialTapTargetSize of FloatingActionButton matches the condition in match.

Example usage:

spot<FloatingActionButton>().existsOnce().hasMaterialTapTargetSizeWhere((it) => it.equals(MaterialTapTargetSize.values.first));

Implementation

WidgetMatcher<FloatingActionButton> hasMaterialTapTargetSizeWhere(
    MatchProp<MaterialTapTargetSize> match) {
  return hasDiagnosticProp<MaterialTapTargetSize>(
      'materialTapTargetSize', match);
}