fromRectXY(Offset.zero &amp; (size / 2.0), 50.0, 50.0));
  canvas.drawPaint(new Paint()..color = Colors.white);
  canvas.restore();
  canvas.save();
  canvas.clipRRect(new RRect.fromRectXY(size.center(Offset.zero) &amp; (size / 2.0), 50.0, 50.0));
  canvas.drawPaint(new Paint()..color = Colors.white);
  canvas.restore();
}
</code></pre>
<p>(Incidentally, rather than using <a href="../../dart-ui/Canvas/clipRRect.html">clipRRect</a> and <a href="../../dart-ui/Canvas/drawPaint.html">drawPaint</a> to draw
round