positioned method

ContainerBuilder positioned({
  1. double? top,
  2. double? right,
  3. double? bottom,
  4. double? left,
  5. double? width,
  6. double? height,
})

自定义位置 - positioned(top, right, bottom, left)

Implementation

ContainerBuilder positioned({
  double? top,
  double? right,
  double? bottom,
  double? left,
  double? width,
  double? height,
}) {
  _isPositioned = true;
  _positionTop = top;
  _positionRight = right;
  _positionBottom = bottom;
  _positionLeft = left;
  _positionWidth = width;
  _positionHeight = height;
  return this;
}