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
Properties
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