BaseBean constructor
BaseBean({
- double xyLineWidth = 2,
- Color xColor = defaultColor,
- Color yColor = defaultColor,
- bool isShowBorderTop = false,
- bool isShowBorderRight = false,
- required List<
DialStyleY> yDialValues, - bool isLeftYDial = true,
- bool isLeftYDialSub = true,
- bool isShowX = true,
- double yMax = 100.0,
- double yMin = 0.0,
- EdgeInsets basePadding = defaultBasePadding,
- bool isShowHintX = false,
- bool isShowHintY = false,
- Color hintLineColor = defaultColor,
- double hintLineWidth = 1.0,
- bool isHintLineImaginary = false,
- bool isShowXScale = false,
- bool isShowYScale = false,
- double rulerWidth = 4,
- UnitXY? unitX,
- UnitXY? unitY,
Implementation
BaseBean({
this.xyLineWidth = 2,
this.xColor = defaultColor,
this.yColor = defaultColor,
this.isShowBorderTop = false,
this.isShowBorderRight = false,
required this.yDialValues,
this.isLeftYDial = true,
this.isLeftYDialSub = 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.unitX,
this.unitY,
}) {
//比率大的在前面排序
yDialValues
.sort((v1, v2) => v2.positionRetioy.compareTo(v1.positionRetioy));
}