sandyBrown property

PdfPen get sandyBrown

Gets the SandyBrown default pen.

//Create a new PDF document.
PdfDocument doc = PdfDocument();
//Draw rectangle.
doc.pages.add().graphics.drawRectangle(
    pen: PdfPens.sandyBrown, bounds: Rect.fromLTWH(0, 0, 200, 100));
//Save the document.
List<int> bytes = doc.save();
//Dispose the document.
doc.dispose();

Implementation

static PdfPen get sandyBrown {
  if (_pens.containsKey(KnownColor.sandyBrown)) {
    return _pens[KnownColor.sandyBrown]!;
  } else {
    return _getPen(KnownColor.sandyBrown);
  }
}