aspectRatio method

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

Implementation

Widget aspectRatio({
  Key? key,
  required double aspectRatio,
}) =>
    AspectRatio(
      key: key,
      aspectRatio: aspectRatio,
      child: this,
    );