buildAspectRatio method Null safety

Widget? buildAspectRatio(
  1. BuildMetadata meta,
  2. Widget child,
  3. double aspectRatio
)

Builds AspectRatio.

Implementation

Widget? buildAspectRatio(
  BuildMetadata meta,
  Widget child,
  double aspectRatio,
) =>
    AspectRatio(aspectRatio: aspectRatio, child: child);