miterLimit property

double get miterLimit

Gets or sets the miter limit.

//Create a new PDF document.
PdfDocument document = PdfDocument()
  ..pages.add().graphics.drawRectangle(
      pen: PdfPen(PdfColor(255, 0, 0), width: 4)
        //Set miter limit,
        ..miterLimit = 2,
      bounds: Rect.fromLTWH(10, 10, 200, 100));
//Save the document.
List<int> bytes = await document.save();
//Close the document.
document.dispose();

Implementation

double get miterLimit => _miterLimit;
set miterLimit (double value)

Implementation

set miterLimit(double value) {
  _checkImmutability();
  _miterLimit = value;
}