doneBeforePainterInit method
void
doneBeforePainterInit(
)
override
Implementation
@override
void doneBeforePainterInit() {
super.doneBeforePainterInit();
gridBackgroundPaint = Paint()
..color = gridBackColor == null
? const Color.fromARGB(255, 240, 240, 240)
: gridBackColor!
..style = PaintingStyle.fill;
borderPaint = Paint()
..color = borderColor == null ? ColorUtils.black : borderColor!
..style = PaintingStyle.stroke
..strokeWidth = Utils.convertDpToPixel(borderStrokeWidth);
backgroundPaint = Paint()
..color = backgroundColor == null ? ColorUtils.white : backgroundColor!;
drawListener ??= initDrawListener();
axisLeft ??= initAxisLeft();
axisRight ??= initAxisRight();
leftAxisTransformer ??= initLeftAxisTransformer();
rightAxisTransformer ??= initRightAxisTransformer();
zoomMatrixBuffer ??= initZoomMatrixBuffer();
axisRendererLeft = initAxisRendererLeft();
axisRendererRight = initAxisRendererRight();
xAxisRenderer = initXAxisRenderer();
if (axisLeftSettingFunction != null) {
axisLeftSettingFunction!(axisLeft!, this);
}
if (axisRightSettingFunction != null) {
axisRightSettingFunction!(axisRight!, this);
}
}