withAspectRatio method

Widget withAspectRatio({
  1. required double aspectRatio,
})

Wraps the widget in an AspectRatio widget.

Implementation

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