PositionedBoxLayoutDelegate constructor

PositionedBoxLayoutDelegate({
  1. Offset position = Offset.zero,
  2. AlignmentGeometry alignment = Alignment.topLeft,
  3. 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;
}