b property Null safety

int b

Gets or sets Blue channel value.

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

Implementation

int get b => _blue;
void b=(int value)

Implementation

set b(int value) {
  _blue = value;
  _assignCMYK(_red, _green, _blue);
  _isFilled = true;
}