GeometryPainter<T> class
abstract
Item painter for charts Chart will slice the canvas and each item is painted has constraints (width / itemWidth) * height
- Implementers
Constructors
-
GeometryPainter(ChartItem<
T?> item, ChartData<T?> data, ItemOptions itemOptions) - Default constructor for GeometryPainter
Properties
-
data
→ ChartData<
T?> -
Current data of the chart
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
item
→ ChartItem<
T?> -
Current item being painted
final
- itemOptions → ItemOptions
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
draw(
Canvas canvas, Size size, Paint paint) → void - Draw ChartItem on the canvas. Canvas with item size is passed, item's padding and margin need to be calculated This is to allow more flexibility for more custom items if needed
-
itemWidth(
Size size) → double - Calculate item width based on current Size and ChartState
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited