AspectRatio constructor

const AspectRatio(
  1. {Key key,
  2. @required double aspectRatio,
  3. Widget child}
)

Creates a widget with a specific aspect ratio.

The aspectRatio argument must not be null.

Implementation

const AspectRatio({
  Key key,
  @required this.aspectRatio,
  Widget child,
}) : assert(aspectRatio != null),
     super(key: key, child: child);