RRect.fromLTRBAndCorners constructor

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 })

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,
     );