rendered property

Future<Image> get rendered

Implementation

Future<ui.Image> get rendered {
  handleMouseDown(const Offset(1821, 1281));
  var pictureRecorder = ui.PictureRecorder();
  Canvas canvas = Canvas(pictureRecorder);
  BoardPainter painter = BoardPainter(
      children: widget.children, background: widget.color, hideGrid: true);
  var size = boardSize;
  painter.paint(canvas, size);
  return pictureRecorder
      .endRecording()
      .toImage(size.width.floor(), size.height.floor());
}