RRect.fromLTRBXY constructor

const RRect.fromLTRBXY(
  1. double left,
  2. double top,
  3. double right,
  4. double bottom,
  5. double radiusX,
  6. double radiusY,
)

Construct a rounded rectangle from its left, top, right, and bottom edges, and the same radii along its horizontal axis and its vertical axis.

Will assert in debug mode if radiusX or radiusY are negative.

Implementation

const RRect.fromLTRBXY(
  double left,
  double top,
  double right,
  double bottom,
  double radiusX,
  double radiusY,
) : this._raw(
  top: top,
  left: left,
  right: right,
  bottom: bottom,
  tlRadiusX: radiusX,
  tlRadiusY: radiusY,
  trRadiusX: radiusX,
  trRadiusY: radiusY,
  blRadiusX: radiusX,
  blRadiusY: radiusY,
  brRadiusX: radiusX,
  brRadiusY: radiusY,
);