withAspectRatio method

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

Show the widget with the given aspectRatio

Implementation

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