PdfGraphicState constructor

const PdfGraphicState({
  1. double? opacity,
  2. double? strokeOpacity,
  3. double? fillOpacity,
  4. PdfBlendMode? blendMode,
  5. PdfSoftMask? softMask,
  6. PdfFunction? transferFunction,
})

Create a new graphic state

Implementation

const PdfGraphicState({
  double? opacity,
  double? strokeOpacity,
  double? fillOpacity,
  this.blendMode,
  this.softMask,
  this.transferFunction,
})  : fillOpacity = fillOpacity ?? opacity,
      strokeOpacity = strokeOpacity ?? opacity;