CustomSymbolRenderer class abstract

Convenience class allowing you to pass your Widget builder through the common chart so that it is created for you by the Legend.

This allows a custom SymbolRenderer in Flutter without having to create a completely custom legend.

Constructors

CustomSymbolRenderer()

Properties

hashCode int
The hash code for this object.
no setterinherited
isSolid bool
Whether the symbol should be rendered as a solid shape, or a hollow shape.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

build(BuildContext context, {Color? color, required Size size, bool enabled = true}) Widget
Must override this method to build the custom Widget with the given color as
getSolidFillColor(Color? fillColor) Color?
inherited
getSolidStrokeWidthPx(double? strokeWidthPx) double?
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paint(ChartCanvas canvas, Rectangle<num> bounds, {List<int>? dashPattern, Color? fillColor, FillPatternType? fillPattern, Color? strokeColor, double? strokeWidthPx}) → void
shouldRepaint(covariant SymbolRenderer oldRenderer) bool
toString() String
A string representation of this object.
inherited

Operators

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