Widget.aspectRatio constructor Null safety

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

Implementation

const factory Widget.aspectRatio({
  Key? key,
  required double aspectRatio,
  Widget? child,
}) = AspectRatio;