AspectRatio constructor
Creates a widget with a specific aspect ratio.
The aspectRatio argument must be a finite number greater than zero.
Implementation
const AspectRatio({
super.key,
required this.aspectRatio,
super.child,
}) : assert(aspectRatio > 0.0);