RRect.fromLTRBR constructor

RRect.fromLTRBR(
  1. double left,
  2. double top,
  3. double right,
  4. double bottom,
  5. Radius radius
)

Construct a rounded rectangle from its left, top, right, and bottom edges, and the same radius in each corner.

Will assert in debug mode if the radius is negative in either x or y.

Implementation

RRect.fromLTRBR(
  double left,
  double top,
  double right,
  double bottom,
  Radius radius,
)
  : this._raw(
      top: top,
      left: left,
      right: right,
      bottom: bottom,
      tlRadiusX: radius.x,
      tlRadiusY: radius.y,
      trRadiusX: radius.x,
      trRadiusY: radius.y,
      blRadiusX: radius.x,
      blRadiusY: radius.y,
      brRadiusX: radius.x,
      brRadiusY: radius.y,
    );