r property

int r

Gets or sets Red channel value.

//Create a new PDF document.
PdfDocument document = PdfDocument()
  ..pages.add().graphics.drawRectangle(
      //sets the red channel value.
      pen: PdfPen(PdfColor(0, 0, 0)..r = 255),
      bounds: Rect.fromLTWH(10, 10, 200, 100));
//Save the document.
List<int> bytes = await document.save();
//Close the document.
document.dispose();

Implementation

int get r => _red;
void r=(int value)

Implementation

set r(int value) {
  _red = value;
  _assignCMYK(_red, _green, _blue);
  _helper.isFilled = true;
}