PCanvasPanel2D constructor

PCanvasPanel2D({
  1. PStyle? style,
  2. PCanvasElementContainer<PCanvasElement>? parent,
  3. int? zIndex,
  4. Position? pos,
  5. PDimension? dimension,
  6. Iterable<PCanvasElement2D>? elements,
  7. String? id,
})

Implementation

PCanvasPanel2D({
  this.style,
  super.parent,
  super.zIndex,
  super.pos,
  super.dimension,
  Iterable<PCanvasElement2D>? elements,
  super.id,
}) : super() {
  if (elements != null) {
    addAllElements(elements);
  }
}