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
-
- @immutable
- @chartSurface
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 tonull. -
clearCenterLabelStyle(
) → PieChartTheme -
Available on PieChartTheme, provided by the PieChartThemeFluent extension
Clears PieChartTheme.centerLabelStyle tonull. -
clearCenterValueStyle(
) → PieChartTheme -
Available on PieChartTheme, provided by the PieChartThemeFluent extension
Clears PieChartTheme.centerValueStyle tonull. -
clearGradient(
) → PieChartTheme -
Available on PieChartTheme, provided by the PieChartThemeFluent extension
Clears PieChartTheme.gradient tonull. -
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 withvalue. -
withBorderColorMode(
PieBorderColorMode value) → PieChartTheme -
Available on PieChartTheme, provided by the PieChartThemeFluent extension
Replaces PieChartTheme.borderColorMode withvalue. -
withBorderHueShiftDegrees(
double value) → PieChartTheme -
Available on PieChartTheme, provided by the PieChartThemeFluent extension
Replaces PieChartTheme.borderHueShiftDegrees withvalue. -
withBorderLightnessShift(
double value) → PieChartTheme -
Available on PieChartTheme, provided by the PieChartThemeFluent extension
Replaces PieChartTheme.borderLightnessShift withvalue. -
withBorderSaturationShift(
double value) → PieChartTheme -
Available on PieChartTheme, provided by the PieChartThemeFluent extension
Replaces PieChartTheme.borderSaturationShift withvalue. -
withCalloutStyle(
LabelStyle value) → PieChartTheme -
Available on PieChartTheme, provided by the PieChartThemeFluent extension
Replaces PieChartTheme.calloutStyle withvalue. -
withCenterLabelStyle(
LabelStyle value) → PieChartTheme -
Available on PieChartTheme, provided by the PieChartThemeFluent extension
Replaces PieChartTheme.centerLabelStyle withvalue. -
withCenterValueStyle(
LabelStyle value) → PieChartTheme -
Available on PieChartTheme, provided by the PieChartThemeFluent extension
Replaces PieChartTheme.centerValueStyle withvalue. -
withCornerRadius(
double value) → PieChartTheme -
Available on PieChartTheme, provided by the PieChartThemeFluent extension
Replaces PieChartTheme.cornerRadius withvalue. -
withCornerTreatment(
PieCornerTreatment value) → PieChartTheme -
Available on PieChartTheme, provided by the PieChartThemeFluent extension
Replaces PieChartTheme.cornerTreatment withvalue. -
withGradient(
PieGradientStyle value) → PieChartTheme -
Available on PieChartTheme, provided by the PieChartThemeFluent extension
Replaces PieChartTheme.gradient withvalue. -
withOpacity(
double value) → PieChartTheme -
Available on PieChartTheme, provided by the PieChartThemeFluent extension
Replaces PieChartTheme.opacity withvalue. -
withSelectedElevation(
PieElevationStyle value) → PieChartTheme -
Available on PieChartTheme, provided by the PieChartThemeFluent extension
Replaces PieChartTheme.selectedElevation withvalue. -
withShadow(
PieElevationStyle value) → PieChartTheme -
Available on PieChartTheme, provided by the PieChartThemeFluent extension
Replaces PieChartTheme.shadow withvalue.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override