PieChartTheme class

Theme defaults shared by radial Pie charts.

Per-series values in PieChartStyle and PieDataLabelConfig take precedence. Existing SeriesTheme, LegendStyle, and InteractionTheme continue to own palettes, legends, and tooltips respectively.

Available extensions
Annotations

Constructors

PieChartTheme({double opacity = 1, double cornerRadius = 0, PieCornerTreatment cornerTreatment = PieCornerTreatment.roundAll, PieElevationStyle shadow = const PieElevationStyle(), PieElevationStyle selectedElevation = const PieElevationStyle(blurRadius: 10, spreadRadius: 1, opacity: 0.38), PieBorderColorMode borderColorMode = PieBorderColorMode.chartTheme, double borderHueShiftDegrees = 0, double borderSaturationShift = 0, double borderLightnessShift = -0.12, PieGradientStyle? gradient, LabelStyle? calloutStyle, LabelStyle? centerLabelStyle, LabelStyle? centerValueStyle, PieAnimationMode animationMode = PieAnimationMode.grow})
Creates radial theme defaults.
const

Properties

animationMode PieAnimationMode
Default Pie and Donut entrance animation.
final
borderColorMode PieBorderColorMode
Default border-color policy when a series has no fixed PieChartStyle.borderColor.
final
borderHueShiftDegrees double
Hue rotation applied by PieBorderColorMode.slice.
final
borderLightnessShift double
Additive HSL lightness shift applied by PieBorderColorMode.slice.
final
borderSaturationShift double
Additive HSL saturation shift applied by PieBorderColorMode.slice.
final
calloutStyle LabelStyle?
Optional outside/inside data-label callout styling.
final
centerLabelStyle LabelStyle?
Optional theme-level appearance for a Donut center label.
final
centerValueStyle LabelStyle?
Optional theme-level appearance for a Donut center value.
final
cornerRadius double
Default corner radius in logical pixels.
final
cornerTreatment PieCornerTreatment
Default policy for applying cornerRadius to Pie slice paths.
final
gradient PieGradientStyle?
Optional default slice gradient; null keeps solid palette fills.
final
hashCode int
The hash code for this object.
no setteroverride
opacity double
Default slice opacity in the inclusive range 0–1.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedElevation PieElevationStyle
Additional elevation applied to selected slices.
final
shadow PieElevationStyle
Default elevation applied to every slice.
final

Methods

clearCalloutStyle() PieChartTheme

Available on PieChartTheme, provided by the PieChartThemeFluent extension

Clears PieChartTheme.calloutStyle to null.
clearCenterLabelStyle() PieChartTheme

Available on PieChartTheme, provided by the PieChartThemeFluent extension

Clears PieChartTheme.centerLabelStyle to null.
clearCenterValueStyle() PieChartTheme

Available on PieChartTheme, provided by the PieChartThemeFluent extension

Clears PieChartTheme.centerValueStyle to null.
clearGradient() PieChartTheme

Available on PieChartTheme, provided by the PieChartThemeFluent extension

Clears PieChartTheme.gradient to null.
copyWith({double? opacity, double? cornerRadius, PieCornerTreatment? cornerTreatment, PieElevationStyle? shadow, PieElevationStyle? selectedElevation, PieBorderColorMode? borderColorMode, double? borderHueShiftDegrees, double? borderSaturationShift, double? borderLightnessShift, PieGradientStyle? gradient, bool clearGradient = false, LabelStyle? calloutStyle, bool clearCalloutStyle = false, LabelStyle? centerLabelStyle, bool clearCenterLabelStyle = false, LabelStyle? centerValueStyle, bool clearCenterValueStyle = false, PieAnimationMode? animationMode}) PieChartTheme
Returns a copy with selected fields replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
updateSelectedElevation(PieElevationStyle update(PieElevationStyle current)) PieChartTheme

Available on PieChartTheme, provided by the PieChartThemeFluent extension

Rebuilds PieChartTheme.selectedElevation from its current value.
updateShadow(PieElevationStyle update(PieElevationStyle current)) PieChartTheme

Available on PieChartTheme, provided by the PieChartThemeFluent extension

Rebuilds PieChartTheme.shadow from its current value.
withAnimationMode(PieAnimationMode value) PieChartTheme

Available on PieChartTheme, provided by the PieChartThemeFluent extension

Replaces PieChartTheme.animationMode with value.
withBorderColorMode(PieBorderColorMode value) PieChartTheme

Available on PieChartTheme, provided by the PieChartThemeFluent extension

Replaces PieChartTheme.borderColorMode with value.
withBorderHueShiftDegrees(double value) PieChartTheme

Available on PieChartTheme, provided by the PieChartThemeFluent extension

Replaces PieChartTheme.borderHueShiftDegrees with value.
withBorderLightnessShift(double value) PieChartTheme

Available on PieChartTheme, provided by the PieChartThemeFluent extension

Replaces PieChartTheme.borderLightnessShift with value.
withBorderSaturationShift(double value) PieChartTheme

Available on PieChartTheme, provided by the PieChartThemeFluent extension

Replaces PieChartTheme.borderSaturationShift with value.
withCalloutStyle(LabelStyle value) PieChartTheme

Available on PieChartTheme, provided by the PieChartThemeFluent extension

Replaces PieChartTheme.calloutStyle with value.
withCenterLabelStyle(LabelStyle value) PieChartTheme

Available on PieChartTheme, provided by the PieChartThemeFluent extension

Replaces PieChartTheme.centerLabelStyle with value.
withCenterValueStyle(LabelStyle value) PieChartTheme

Available on PieChartTheme, provided by the PieChartThemeFluent extension

Replaces PieChartTheme.centerValueStyle with value.
withCornerRadius(double value) PieChartTheme

Available on PieChartTheme, provided by the PieChartThemeFluent extension

Replaces PieChartTheme.cornerRadius with value.
withCornerTreatment(PieCornerTreatment value) PieChartTheme

Available on PieChartTheme, provided by the PieChartThemeFluent extension

Replaces PieChartTheme.cornerTreatment with value.
withGradient(PieGradientStyle value) PieChartTheme

Available on PieChartTheme, provided by the PieChartThemeFluent extension

Replaces PieChartTheme.gradient with value.
withOpacity(double value) PieChartTheme

Available on PieChartTheme, provided by the PieChartThemeFluent extension

Replaces PieChartTheme.opacity with value.
withSelectedElevation(PieElevationStyle value) PieChartTheme

Available on PieChartTheme, provided by the PieChartThemeFluent extension

Replaces PieChartTheme.selectedElevation with value.
withShadow(PieElevationStyle value) PieChartTheme

Available on PieChartTheme, provided by the PieChartThemeFluent extension

Replaces PieChartTheme.shadow with value.

Operators

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