aspectRatio method

  1. @widgetFactory
Widget aspectRatio(
  1. double aspectRatio
)

Attempts to size the widget to a specific aspect ratio.

Implementation

@widgetFactory
Widget aspectRatio(double aspectRatio) {
  return FleetAspectRatio(
    aspectRatio: aspectRatio,
    child: this,
  );
}