PainterProps class

A data class that encapsulates properties used for rendering chart elements.

PainterProps serves as a container for various properties that affect how chart elements (such as markers, series, and annotations) are rendered on the canvas. It provides a convenient way to pass multiple rendering properties as a single object to painting methods.

This class is typically created by the ChartScaleModel and passed to various painter classes in the chart visualization system. It helps ensure consistent rendering of chart elements across different components of the chart.

The properties in this class primarily relate to the scale and granularity of the chart, which affect the size, spacing, and appearance of visual elements.

Constructors

PainterProps({required int granularity, required double msPerPx, required double zoom})
Creates a new PainterProps instance with the specified properties.

Properties

granularity int
The difference in milliseconds between consecutive data points.
final
hashCode int
The hash code for this object.
no setterinherited
msPerPx double
The number of milliseconds represented by one pixel on the x-axis.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
zoom double
The zoom factor that affects the scale of visual elements.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited