toPainterProps method
Creates a PainterProps instance from this model's scaling parameters.
This method provides a convenient way to convert the chart's scaling information into a format that can be used by various painter classes in the chart visualization system. It encapsulates the zoom factor, granularity, and msPerPx values into a single object that can be passed to painting methods.
@return A PainterProps instance containing this model's scaling parameters.
Implementation
PainterProps toPainterProps() =>
PainterProps(zoom: zoom, granularity: granularity, msPerPx: msPerPx);