RRect.fromLTRBR constructor Null safety

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.

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