shortestSide property

double get shortestSide

The lesser of the magnitudes of the width and the height of this rounded rectangle.

Implementation

double get shortestSide => math.min(width.abs(), height.abs());