toRRect method

RRect toRRect (Rect rect)

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

Implementation

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