ResponsiveAspectRatio constructor

const ResponsiveAspectRatio({
  1. List<double> aspectRatios = const [],
  2. List<LayoutWidgetBuilder> builders = const [],
  3. Key? key,
})

Creates a new ResponsiveAspectRatio widget.

The aspectRatios and builders lists must be the same length.

Implementation

const ResponsiveAspectRatio({
  this.aspectRatios = const [],
  this.builders = const [],
  Key? key,
})  : assert(aspectRatios.length == builders.length, 'Size of breakpoints and builders must be the same'),
      super(key: key);