aspectRatio method

Widget aspectRatio(
  1. double ratio
)

Wraps this widget in an AspectRatio with the given ratio.

Implementation

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