isStadium property

bool get isStadium

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

Implementation

bool get isStadium {
  return tlRadius == trRadius &&
      trRadius == brRadius &&
      brRadius == blRadius &&
      (width <= 2.0 * tlRadiusX || height <= 2.0 * tlRadiusY);
}