rect method
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),
);
}