PGraphic constructor

PGraphic(
  1. Graphic graphic, {
  2. int? zIndex,
  3. Position? pos,
  4. bool clip = true,
  5. PColor? backgroundColor,
  6. PColor? borderColor,
  7. int borderSize = 1,
})

Implementation

PGraphic(this.graphic,
    {super.zIndex,
    super.pos,
    this.clip = true,
    this.backgroundColor,
    this.borderColor,
    this.borderSize = 1})
    : super(dimension: PDimension(graphic.width, graphic.height));