longestSide property Null safety

double longestSide

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

Implementation

double get longestSide => math.max(width.abs(), height.abs());