withValues method

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

Create a copy of this color with different 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,
  );
}