AspectRatio constructor Null safety
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 != null),
assert(aspectRatio > 0.0);