Constraint constructor

Constraint({
  1. ConstraintId? id,
  2. double width = wrapContent,
  3. double height = wrapContent,
  4. double? size,
  5. @_baseConstraint ConstraintAlign? left,
  6. @_baseConstraint ConstraintAlign? top,
  7. @_baseConstraint ConstraintAlign? right,
  8. @_baseConstraint ConstraintAlign? bottom,
  9. @_baseConstraint ConstraintAlign? baseline,
  10. EdgeInsets clickPadding = EdgeInsets.zero,
  11. CLVisibility visibility = visible,
  12. bool percentageMargin = false,
  13. EdgeInsets margin = EdgeInsets.zero,
  14. EdgeInsets goneMargin = EdgeInsets.zero,
  15. TextBaseline textBaseline = TextBaseline.alphabetic,
  16. int? zIndex,
  17. Offset translate = Offset.zero,
  18. bool translateConstraint = false,
  19. double widthPercent = 1,
  20. double heightPercent = 1,
  21. PercentageAnchor widthPercentageAnchor = PercentageAnchor.constraint,
  22. PercentageAnchor heightPercentageAnchor = PercentageAnchor.constraint,
  23. double horizontalBias = 0.5,
  24. double verticalBias = 0.5,
  25. @_wrapperConstraint ConstraintId? topLeftTo,
  26. @_wrapperConstraint ConstraintId? topCenterTo,
  27. @_wrapperConstraint ConstraintId? topRightTo,
  28. @_wrapperConstraint ConstraintId? centerLeftTo,
  29. @_wrapperConstraint ConstraintId? centerTo,
  30. @_wrapperConstraint ConstraintId? centerRightTo,
  31. @_wrapperConstraint ConstraintId? bottomLeftTo,
  32. @_wrapperConstraint ConstraintId? bottomCenterTo,
  33. @_wrapperConstraint ConstraintId? bottomRightTo,
  34. @_wrapperConstraint ConstraintId? centerHorizontalTo,
  35. @_wrapperConstraint ConstraintId? centerVerticalTo,
  36. @_wrapperConstraint ConstraintId? outTopLeftTo,
  37. @_wrapperConstraint ConstraintId? outTopCenterTo,
  38. @_wrapperConstraint ConstraintId? outTopRightTo,
  39. @_wrapperConstraint ConstraintId? outCenterLeftTo,
  40. @_wrapperConstraint ConstraintId? outCenterRightTo,
  41. @_wrapperConstraint ConstraintId? outBottomLeftTo,
  42. @_wrapperConstraint ConstraintId? outBottomCenterTo,
  43. @_wrapperConstraint ConstraintId? outBottomRightTo,
  44. @_wrapperConstraint ConstraintId? centerTopLeftTo,
  45. @_wrapperConstraint ConstraintId? centerTopCenterTo,
  46. @_wrapperConstraint ConstraintId? centerTopRightTo,
  47. @_wrapperConstraint ConstraintId? centerCenterLeftTo,
  48. @_wrapperConstraint ConstraintId? centerCenterRightTo,
  49. @_wrapperConstraint ConstraintId? centerBottomLeftTo,
  50. @_wrapperConstraint ConstraintId? centerBottomCenterTo,
  51. @_wrapperConstraint ConstraintId? centerBottomRightTo,
  52. OnLayoutCallback? layoutCallback,
  53. OnPaintCallback? paintCallback,
  54. bool percentageTranslate = false,
  55. double minWidth = 0,
  56. double maxWidth = matchParent,
  57. double minHeight = 0,
  58. double maxHeight = matchParent,
  59. double? widthHeightRatio,
  60. bool? ratioBaseOnWidth,
  61. int? eIndex,
  62. PinnedInfo? pinnedInfo,
  63. List<ConstraintId>? anchors,
  64. CalcSizeCallback? calcSizeCallback,
  65. CalcOffsetCallback? calcOffsetCallback,
})

Implementation

Constraint({
  ConstraintId? id,
  this.width = wrapContent,
  this.height = wrapContent,
  this.size,
  @_baseConstraint this.left,
  @_baseConstraint this.top,
  @_baseConstraint this.right,
  @_baseConstraint this.bottom,
  @_baseConstraint this.baseline,
  this.clickPadding = EdgeInsets.zero,
  this.visibility = visible,
  this.percentageMargin = false,
  this.margin = EdgeInsets.zero,
  this.goneMargin = EdgeInsets.zero,
  this.textBaseline = TextBaseline.alphabetic,
  this.zIndex, // default is child index
  this.translate = Offset.zero,
  this.translateConstraint = false,
  this.widthPercent = 1,
  this.heightPercent = 1,
  this.widthPercentageAnchor = PercentageAnchor.constraint,
  this.heightPercentageAnchor = PercentageAnchor.constraint,
  this.horizontalBias = 0.5,
  this.verticalBias = 0.5,
  @_wrapperConstraint this.topLeftTo,
  @_wrapperConstraint this.topCenterTo,
  @_wrapperConstraint this.topRightTo,
  @_wrapperConstraint this.centerLeftTo,
  @_wrapperConstraint this.centerTo,
  @_wrapperConstraint this.centerRightTo,
  @_wrapperConstraint this.bottomLeftTo,
  @_wrapperConstraint this.bottomCenterTo,
  @_wrapperConstraint this.bottomRightTo,
  @_wrapperConstraint this.centerHorizontalTo,
  @_wrapperConstraint this.centerVerticalTo,
  @_wrapperConstraint this.outTopLeftTo,
  @_wrapperConstraint this.outTopCenterTo,
  @_wrapperConstraint this.outTopRightTo,
  @_wrapperConstraint this.outCenterLeftTo,
  @_wrapperConstraint this.outCenterRightTo,
  @_wrapperConstraint this.outBottomLeftTo,
  @_wrapperConstraint this.outBottomCenterTo,
  @_wrapperConstraint this.outBottomRightTo,
  @_wrapperConstraint this.centerTopLeftTo,
  @_wrapperConstraint this.centerTopCenterTo,
  @_wrapperConstraint this.centerTopRightTo,
  @_wrapperConstraint this.centerCenterLeftTo,
  @_wrapperConstraint this.centerCenterRightTo,
  @_wrapperConstraint this.centerBottomLeftTo,
  @_wrapperConstraint this.centerBottomCenterTo,
  @_wrapperConstraint this.centerBottomRightTo,
  this.layoutCallback,
  this.paintCallback,
  this.percentageTranslate = false,
  this.minWidth = 0,
  this.maxWidth = matchParent,
  this.minHeight = 0,
  this.maxHeight = matchParent,
  this.widthHeightRatio,
  this.ratioBaseOnWidth,
  this.eIndex,
  this.pinnedInfo,
  this.anchors,
  this.calcSizeCallback,
  this.calcOffsetCallback,
}) : super(id);