rect method

RRect rect(
  1. Size size
)

Returns a rounded rectangle that represents the base shape of the ticket.

Implementation

RRect rect(Size size) {
  return RRect.fromRectAndRadius(
    Rect.fromLTWH(0, 0, size.width, size.height),
    Radius.circular(borderRadius),
  );
}