BaseBean constructor

BaseBean({
  1. double xyLineWidth = 2,
  2. Color xColor = defaultColor,
  3. Color yColor = defaultColor,
  4. bool isShowBorderTop = false,
  5. bool isShowBorderRight = false,
  6. required List<DialStyleY> yDialValues,
  7. bool yDialLeftMain = true,
  8. bool isShowX = true,
  9. double yMax = 100.0,
  10. double yMin = 0.0,
  11. EdgeInsets basePadding = defaultBasePadding,
  12. bool isShowHintX = false,
  13. bool isShowHintY = false,
  14. Color hintLineColor = defaultColor,
  15. double hintLineWidth = 1.0,
  16. bool isHintLineImaginary = false,
  17. bool isShowXScale = false,
  18. bool isShowYScale = false,
  19. double rulerWidth = 4,
  20. List<UnitXY>? units,
  21. double? xBaseLineY,
})

Implementation

BaseBean({
  this.xyLineWidth = 2,
  this.xColor = defaultColor,
  this.yColor = defaultColor,
  this.isShowBorderTop = false,
  this.isShowBorderRight = false,
  required this.yDialValues,
  this.yDialLeftMain = true,
  this.isShowX = true,
  this.yMax = 100.0,
  this.yMin = 0.0,
  this.basePadding = defaultBasePadding,
  this.isShowHintX = false,
  this.isShowHintY = false,
  this.hintLineColor = defaultColor,
  this.hintLineWidth = 1.0,
  this.isHintLineImaginary = false,
  this.isShowXScale = false,
  this.isShowYScale = false,
  this.rulerWidth = 4,
  this.units,
  this.xBaseLineY,
}) {
  //比率大的在前面排序
  yDialValues
      .sort((v1, v2) => v2.positionRetioy.compareTo(v1.positionRetioy));
}