PCanvasElement2DBase constructor

PCanvasElement2DBase({
  1. PCanvasElementContainer<PCanvasElement>? parent,
  2. int? zIndex,
  3. Position? pos,
  4. PDimension? dimension,
  5. String? id,
})

Implementation

PCanvasElement2DBase({
  super.parent,
  this.zIndex,
  Position? pos,
  PDimension? dimension,
  super.id,
}) : super() {
  position = _resolvePosition(pos);
  this.dimension = _resolveDimension(dimension);
}