RRect.fromRectAndCorners constructor
Construct a rounded rectangle from its bounding box and and topLeft, topRight, bottomRight, and bottomLeft radii.
The corner radii default to Radius.zero, i.e. right-angled corners
Implementation
RRect.fromRectAndCorners(
Rect/*!*/ rect,
{
Radius/*!*/ topLeft = Radius.zero,
Radius/*!*/ topRight = Radius.zero,
Radius/*!*/ bottomRight = Radius.zero,
Radius/*!*/ bottomLeft = Radius.zero
}
) : this._raw(
top: rect.top,
left: rect.left,
right: rect.right,
bottom: rect.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,
);