PCanvasBackgroundGradient constructor

PCanvasBackgroundGradient(
  1. PColor colorFrom,
  2. PColor colorTo, {
  3. PCanvasElementContainer<PCanvasElement>? parent,
  4. Position? pos,
  5. PDimension? dimension,
  6. int zIndex = defaultZIndex,
  7. String? id,
})

Implementation

PCanvasBackgroundGradient(this.colorFrom, this.colorTo,
    {super.parent,
    super.pos,
    super.dimension,
    int zIndex = defaultZIndex,
    super.id})
    : super(zIndex: zIndex);