RRect toRRect(Rect rect)

Creates a RRect from the current border radius and a Rect.

Source

RRect toRRect(Rect rect) {
  return new RRect.fromRectAndCorners(
    rect,
    topLeft: topLeft,
    topRight: topRight,
    bottomRight: bottomRight,
    bottomLeft: bottomLeft
  );
}