withValues method

PdfColor withValues(
  1. double? alpha,
  2. double? red,
  3. double? green,
  4. double? blue,
)

Returns a copy with different component values.

Implementation

PdfColor withValues(double? alpha, double? red, double? green, double? blue) {
  return PdfColor(red ?? this.red, green ?? this.green, blue ?? this.blue,
      alpha ?? this.alpha);
}