ResponsiveAspectRatio constructor
const
ResponsiveAspectRatio({
- List<
double> aspectRatios = const [], - List<
LayoutWidgetBuilder> builders = const [], - 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);