StacPositioned.fromRelativeRect constructor

const StacPositioned.fromRelativeRect({
  1. required double? left,
  2. required double? top,
  3. required double? right,
  4. required double? bottom,
  5. 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;