RRect.fromLTRBAndCorners constructor

RRect.fromLTRBAndCorners(
  1. double left,
  2. double top,
  3. double right,
  4. double bottom,
  5. {Radius topLeft: Radius.zero,
  6. Radius topRight: Radius.zero,
  7. Radius bottomRight: Radius.zero,
  8. Radius bottomLeft: Radius.zero}
)

Construct a rounded rectangle from its left, top, right, and bottom edges, and topLeft, topRight, bottomRight, and bottomLeft radii.

The corner radii default to Radius.zero, i.e. right-angled corners.

Implementation

RRect.fromLTRBAndCorners(
  double/*!*/ left,
  double/*!*/ top,
  double/*!*/ right,
  double/*!*/ bottom, {
  Radius/*!*/ topLeft = Radius.zero,
  Radius/*!*/ topRight = Radius.zero,
  Radius/*!*/ bottomRight = Radius.zero,
  Radius/*!*/ bottomLeft = Radius.zero,
}) : this._raw(
       top: top,
       left: left,
       right: right,
       bottom: bottom,
       tlRadiusX: topLeft.x,
       tlRadiusY: topLeft.y,
       trRadiusX: topRight.x,
       trRadiusY: topRight.y,
       blRadiusX: bottomLeft.x,
       blRadiusY: bottomLeft.y,
       brRadiusX: bottomRight.x,
       brRadiusY: bottomRight.y,
     );