PositionedBoxLayoutDelegate constructor
PositionedBoxLayoutDelegate({
- Offset position = Offset.zero,
- AlignmentGeometry alignment = Alignment.topLeft,
- required Size size,
Creates a SceneElementLayoutDelegate which lays out the SceneElement
at a specified position
in the Scene and with a specified size
.
Implementation
PositionedBoxLayoutDelegate({
Offset position = Offset.zero,
AlignmentGeometry alignment = Alignment.topLeft,
required Size size,
}) : _alignment = alignment {
this.position = position;
this.size = size;
}