FleetPositioned.fromRelativeRect constructor

FleetPositioned.fromRelativeRect({
  1. Key? key,
  2. required RelativeRect rect,
  3. required Widget child,
})

Corresponding constructor to Positioned.fromRelativeRect.

Implementation

FleetPositioned.fromRelativeRect({
  super.key,
  required RelativeRect rect,
  required this.child,
})  : left = rect.left,
      top = rect.top,
      right = rect.right,
      bottom = rect.bottom,
      width = null,
      height = null;