aspectRatio property

double aspectRatio

Implementation

double get aspectRatio => size != null
    ? size!.width / size!.height > 0.0
        ? size!.width / size!.height
        : 1.0
    : 1.0;