getBounds method

Rect getBounds(
  1. PrettyQrPaintingContext context
)
inherited

Returns a bounds of the QR code symbol painted by paint, as an axis-aligned Rect.

By default, this returns a rectangle that is the same size as the context estimated bounds. If shape paints a QR code symbol that is roughly the same size as the context bounds, then this may be adequate.

Implementation

Rect getBounds(PrettyQrPaintingContext context) {
  return context.estimatedBounds;
}