isEllipse property

bool isEllipse

Whether this rounded rectangle has no side with a straight section.

Implementation

bool get isEllipse {
  return tlRadius == trRadius
      && trRadius == brRadius
      && brRadius == blRadius
      && width <= 2.0 * tlRadiusX
      && height <= 2.0 * tlRadiusY;
}