point method

void point({
  1. required double x,
  2. required double y,
  3. double? z,
})

Implementation

void point({
  required double x,
  required double y,
  double? z,
}) {
  if (z != null) {
    throw UnimplementedError('3D point drawing is not yet supported.');
  }

  _paintingContext.strokePaint.style = PaintingStyle.fill;
  _paintingContext.canvas.drawRect(
    Rect.fromLTWH(x, y, 1, 1),
    _paintingContext.strokePaint,
  );
  _paintingContext.strokePaint.style = PaintingStyle.stroke;

  _paintingContext.markHasUnappliedCanvasCommands();
}