StacPositioned.fromRect constructor
StacPositioned.fromRect({
- required StacRect rect,
- required StacWidget? child,
Creates a StacPositioned object with the values from the given StacRect.
This sets the left, top, width, and height properties from the given StacRect. The right and bottom properties are set to null.
Implementation
StacPositioned.fromRect({required StacRect rect, required this.child})
: left = rect.left,
top = rect.top,
width = rect.width,
height = rect.height,
right = null,
bottom = null;