Layer constructor

Layer({
  1. required LayerId layerId,
  2. LayerId? parentLayerId,
  3. BackendNodeId? backendNodeId,
  4. required num offsetX,
  5. required num offsetY,
  6. required num width,
  7. required num height,
  8. List<num>? transform,
  9. num? anchorX,
  10. num? anchorY,
  11. num? anchorZ,
  12. required int paintCount,
  13. required bool drawsContent,
  14. bool? invisible,
  15. List<ScrollRect>? scrollRects,
  16. StickyPositionConstraint? stickyPositionConstraint,
})

Implementation

Layer({
  required this.layerId,
  this.parentLayerId,
  this.backendNodeId,
  required this.offsetX,
  required this.offsetY,
  required this.width,
  required this.height,
  this.transform,
  this.anchorX,
  this.anchorY,
  this.anchorZ,
  required this.paintCount,
  required this.drawsContent,
  this.invisible,
  this.scrollRects,
  this.stickyPositionConstraint,
});