Layer constructor
Layer({
- required LayerId layerId,
- LayerId? parentLayerId,
- BackendNodeId? backendNodeId,
- required num offsetX,
- required num offsetY,
- required num width,
- required num height,
- List<
num> ? transform, - num? anchorX,
- num? anchorY,
- num? anchorZ,
- required int paintCount,
- required bool drawsContent,
- bool? invisible,
- List<
ScrollRect> ? scrollRects, - 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,
});