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