hasMainAxisSizeWhere method

WidgetMatcher<Row> hasMainAxisSizeWhere(
  1. MatchProp<MainAxisSize> match
)

Expects that mainAxisSize of Row matches the condition in match.

Example usage:

spot<Row>().existsOnce().hasMainAxisSizeWhere((it) => it.equals(MainAxisSize.values.first));

Implementation

WidgetMatcher<Row> hasMainAxisSizeWhere(MatchProp<MainAxisSize> match) {
  return hasDiagnosticProp<MainAxisSize>('mainAxisSize', match);
}