DepthChartPainter constructor
DepthChartPainter(
- List<
DepthEntity> ? mBuyData, - List<
DepthEntity> ? mSellData, - Offset? pressOffset,
- bool isLongPress,
- int? fixedLength,
- ChartColors chartColors,
- Offset offset,
- DepthChartTranslations chartTranslations,
Implementation
DepthChartPainter(
this.mBuyData,
this.mSellData,
this.pressOffset,
this.isLongPress,
this.fixedLength,
this.chartColors,
this.offset,
this.chartTranslations,
) {
mBuyLinePaint ??= Paint()
..isAntiAlias = true
..color = this.chartColors.depthBuyColor
..style = PaintingStyle.stroke
..strokeWidth = 1.0;
mSellLinePaint ??= Paint()
..isAntiAlias = true
..color = this.chartColors.depthSellColor
..style = PaintingStyle.stroke
..strokeWidth = 1.0;
mBuyPathPaint ??= Paint()
..isAntiAlias = true
..color = this.chartColors.depthBuyPathColor;
mSellPathPaint ??= Paint()
..isAntiAlias = true
..color = this.chartColors.depthSellPathColor;
mBuyPath ??= Path();
mSellPath ??= Path();
init();
}