DonutChartStyle class

Immutable per-series Donut geometry and appearance overrides.

Donut reuses the established radial slice appearance contract while adding a required circular opening and an optional partial sweep.

Inheritance
Available extensions
Annotations

Constructors

DonutChartStyle({double innerRadiusFactor = 0.58, double sweepAngleDegrees = 360, double startAngleDegrees = -90, bool clockwise = true, double radiusFactor = 0.9, double sliceGap = 2, double borderWidth = 1, Color? borderColor, PieBorderColorMode? borderColorMode, double? borderHueShiftDegrees, double? borderSaturationShift, double? borderLightnessShift, PieGradientStyle? gradient, double selectionExplodeOffset = 8, double? opacity, double? cornerRadius, PieCornerTreatment? cornerTreatment, PieElevationStyle? shadow, PieElevationStyle? selectedElevation, PieAnimationMode? animationMode, RadialDataTransitionMode dataTransitionMode = RadialDataTransitionMode.automatic})
Creates Donut geometry and optional theme overrides.
const
DonutChartStyle.fromRadialStyle(RadialChartStyle style, {double innerRadiusFactor = 0.58, double sweepAngleDegrees = 360})
Creates a Donut style from an existing shared radial appearance.
factory

Properties

animationMode → PieAnimationMode?
Optional entrance animation overriding PieChartTheme.animationMode.
finalinherited
borderColor → Color?
Optional shared slice-border color.
finalinherited
borderColorMode → PieBorderColorMode?
Optional border policy overriding PieChartTheme.borderColorMode.
finalinherited
borderHueShiftDegrees → double?
Optional hue rotation overriding PieChartTheme.borderHueShiftDegrees.
finalinherited
borderLightnessShift → double?
Optional lightness shift overriding PieChartTheme.borderLightnessShift.
finalinherited
borderSaturationShift → double?
Optional saturation shift overriding PieChartTheme.borderSaturationShift.
finalinherited
borderWidth → double
Logical-pixel slice-border width.
finalinherited
clockwise → bool
Whether slices advance clockwise in screen coordinates.
finalinherited
cornerRadius → double?
Optional corner radius overriding PieChartTheme.cornerRadius.
finalinherited
cornerTreatment → PieCornerTreatment?
Optional corner policy overriding PieChartTheme.cornerTreatment.
finalinherited
dataTransitionMode → RadialDataTransitionMode
Data-to-data motion policy, independent from entrance animation.
finalinherited
gradient → PieGradientStyle?
Optional gradient overriding PieChartTheme.gradient.
finalinherited
hashCode → int
The hash code for this object.
no setteroverride
innerRadiusFactor → double
Radius of the shared center opening as a fraction of the maximum outer radius. Values must be finite and in the open interval (0, 1).
final
opacity → double?
Optional slice opacity overriding PieChartTheme.opacity.
finalinherited
radiusFactor → double
Fraction of the available half-size used as the outer radius.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectedElevation → PieElevationStyle?
Optional selected elevation overriding PieChartTheme.selectedElevation.
finalinherited
selectionExplodeOffset → double
Logical-pixel offset applied to a selected, exploded slice.
finalinherited
shadow → PieElevationStyle?
Optional base elevation overriding PieChartTheme.shadow.
finalinherited
sliceGap → double
Logical-pixel gap measured along the outer circumference.
finalinherited
startAngleDegrees → double
Angle in degrees at which the first slice begins.
finalinherited
sweepAngleDegrees → double
Total angular span distributed across all visible slices.
final

Methods

clearAnimationMode() → DonutChartStyle

Available on DonutChartStyle, provided by the DonutChartStyleFluent extension

Clears DonutChartStyle.animationMode to null.
clearAnimationMode() → PieChartStyle

Available on PieChartStyle, provided by the PieChartStyleFluent extension

Clears PieChartStyle.animationMode to null.
clearBorderColor() → DonutChartStyle

Available on DonutChartStyle, provided by the DonutChartStyleFluent extension

Clears DonutChartStyle.borderColor to null.
clearBorderColor() → PieChartStyle

Available on PieChartStyle, provided by the PieChartStyleFluent extension

Clears PieChartStyle.borderColor to null.
clearBorderColorMode() → PieChartStyle

Available on PieChartStyle, provided by the PieChartStyleFluent extension

Clears PieChartStyle.borderColorMode to null.
clearBorderColorMode() → DonutChartStyle

Available on DonutChartStyle, provided by the DonutChartStyleFluent extension

Clears DonutChartStyle.borderColorMode to null.
clearBorderHueShiftDegrees() → PieChartStyle

Available on PieChartStyle, provided by the PieChartStyleFluent extension

Clears PieChartStyle.borderHueShiftDegrees to null.
clearBorderHueShiftDegrees() → DonutChartStyle

Available on DonutChartStyle, provided by the DonutChartStyleFluent extension

Clears DonutChartStyle.borderHueShiftDegrees to null.
clearBorderLightnessShift() → PieChartStyle

Available on PieChartStyle, provided by the PieChartStyleFluent extension

Clears PieChartStyle.borderLightnessShift to null.
clearBorderLightnessShift() → DonutChartStyle

Available on DonutChartStyle, provided by the DonutChartStyleFluent extension

Clears DonutChartStyle.borderLightnessShift to null.
clearBorderSaturationShift() → PieChartStyle

Available on PieChartStyle, provided by the PieChartStyleFluent extension

Clears PieChartStyle.borderSaturationShift to null.
clearBorderSaturationShift() → DonutChartStyle

Available on DonutChartStyle, provided by the DonutChartStyleFluent extension

Clears DonutChartStyle.borderSaturationShift to null.
clearCornerRadius() → PieChartStyle

Available on PieChartStyle, provided by the PieChartStyleFluent extension

Clears PieChartStyle.cornerRadius to null.
clearCornerRadius() → DonutChartStyle

Available on DonutChartStyle, provided by the DonutChartStyleFluent extension

Clears DonutChartStyle.cornerRadius to null.
clearCornerTreatment() → PieChartStyle

Available on PieChartStyle, provided by the PieChartStyleFluent extension

Clears PieChartStyle.cornerTreatment to null.
clearCornerTreatment() → DonutChartStyle

Available on DonutChartStyle, provided by the DonutChartStyleFluent extension

Clears DonutChartStyle.cornerTreatment to null.
clearGradient() → PieChartStyle

Available on PieChartStyle, provided by the PieChartStyleFluent extension

Clears PieChartStyle.gradient to null.
clearGradient() → DonutChartStyle

Available on DonutChartStyle, provided by the DonutChartStyleFluent extension

Clears DonutChartStyle.gradient to null.
clearOpacity() → PieChartStyle

Available on PieChartStyle, provided by the PieChartStyleFluent extension

Clears PieChartStyle.opacity to null.
clearOpacity() → DonutChartStyle

Available on DonutChartStyle, provided by the DonutChartStyleFluent extension

Clears DonutChartStyle.opacity to null.
clearSelectedElevation() → PieChartStyle

Available on PieChartStyle, provided by the PieChartStyleFluent extension

Clears PieChartStyle.selectedElevation to null.
clearSelectedElevation() → DonutChartStyle

Available on DonutChartStyle, provided by the DonutChartStyleFluent extension

Clears DonutChartStyle.selectedElevation to null.
clearShadow() → PieChartStyle

Available on PieChartStyle, provided by the PieChartStyleFluent extension

Clears PieChartStyle.shadow to null.
clearShadow() → DonutChartStyle

Available on DonutChartStyle, provided by the DonutChartStyleFluent extension

Clears DonutChartStyle.shadow to null.
copyWith({double? innerRadiusFactor, double? sweepAngleDegrees, double? startAngleDegrees, bool? clockwise, double? radiusFactor, double? sliceGap, double? borderWidth, Color? borderColor, bool clearBorderColor = false, PieBorderColorMode? borderColorMode, bool clearBorderColorMode = false, double? borderHueShiftDegrees, bool clearBorderHueShiftDegrees = false, double? borderSaturationShift, bool clearBorderSaturationShift = false, double? borderLightnessShift, bool clearBorderLightnessShift = false, PieGradientStyle? gradient, bool clearGradient = false, double? selectionExplodeOffset, double? opacity, bool clearOpacity = false, double? cornerRadius, bool clearCornerRadius = false, PieCornerTreatment? cornerTreatment, bool clearCornerTreatment = false, PieElevationStyle? shadow, bool clearShadow = false, PieElevationStyle? selectedElevation, bool clearSelectedElevation = false, PieAnimationMode? animationMode, bool clearAnimationMode = false, RadialDataTransitionMode? dataTransitionMode}) → DonutChartStyle
Returns a copy with selected fields replaced.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
withAnimationMode(PieAnimationMode value) → PieChartStyle

Available on PieChartStyle, provided by the PieChartStyleFluent extension

Replaces PieChartStyle.animationMode with value.
withAnimationMode(PieAnimationMode value) → DonutChartStyle

Available on DonutChartStyle, provided by the DonutChartStyleFluent extension

Replaces DonutChartStyle.animationMode with value.
withBorderColor(Color value) → DonutChartStyle

Available on DonutChartStyle, provided by the DonutChartStyleFluent extension

Replaces DonutChartStyle.borderColor with value.
withBorderColor(Color value) → PieChartStyle

Available on PieChartStyle, provided by the PieChartStyleFluent extension

Replaces PieChartStyle.borderColor with value.
withBorderColorMode(PieBorderColorMode value) → PieChartStyle

Available on PieChartStyle, provided by the PieChartStyleFluent extension

Replaces PieChartStyle.borderColorMode with value.
withBorderColorMode(PieBorderColorMode value) → DonutChartStyle

Available on DonutChartStyle, provided by the DonutChartStyleFluent extension

Replaces DonutChartStyle.borderColorMode with value.
withBorderHueShiftDegrees(double value) → PieChartStyle

Available on PieChartStyle, provided by the PieChartStyleFluent extension

Replaces PieChartStyle.borderHueShiftDegrees with value.
withBorderHueShiftDegrees(double value) → DonutChartStyle

Available on DonutChartStyle, provided by the DonutChartStyleFluent extension

Replaces DonutChartStyle.borderHueShiftDegrees with value.
withBorderLightnessShift(double value) → DonutChartStyle

Available on DonutChartStyle, provided by the DonutChartStyleFluent extension

Replaces DonutChartStyle.borderLightnessShift with value.
withBorderLightnessShift(double value) → PieChartStyle

Available on PieChartStyle, provided by the PieChartStyleFluent extension

Replaces PieChartStyle.borderLightnessShift with value.
withBorderSaturationShift(double value) → PieChartStyle

Available on PieChartStyle, provided by the PieChartStyleFluent extension

Replaces PieChartStyle.borderSaturationShift with value.
withBorderSaturationShift(double value) → DonutChartStyle

Available on DonutChartStyle, provided by the DonutChartStyleFluent extension

Replaces DonutChartStyle.borderSaturationShift with value.
withBorderWidth(double value) → PieChartStyle

Available on PieChartStyle, provided by the PieChartStyleFluent extension

Replaces PieChartStyle.borderWidth with value.
withBorderWidth(double value) → DonutChartStyle

Available on DonutChartStyle, provided by the DonutChartStyleFluent extension

Replaces DonutChartStyle.borderWidth with value.
withClockwise(bool value) → DonutChartStyle

Available on DonutChartStyle, provided by the DonutChartStyleFluent extension

Replaces DonutChartStyle.clockwise with value.
withClockwise(bool value) → PieChartStyle

Available on PieChartStyle, provided by the PieChartStyleFluent extension

Replaces PieChartStyle.clockwise with value.
withCornerRadius(double value) → DonutChartStyle

Available on DonutChartStyle, provided by the DonutChartStyleFluent extension

Replaces DonutChartStyle.cornerRadius with value.
withCornerRadius(double value) → PieChartStyle

Available on PieChartStyle, provided by the PieChartStyleFluent extension

Replaces PieChartStyle.cornerRadius with value.
withCornerTreatment(PieCornerTreatment value) → DonutChartStyle

Available on DonutChartStyle, provided by the DonutChartStyleFluent extension

Replaces DonutChartStyle.cornerTreatment with value.
withCornerTreatment(PieCornerTreatment value) → PieChartStyle

Available on PieChartStyle, provided by the PieChartStyleFluent extension

Replaces PieChartStyle.cornerTreatment with value.
withDataTransitionMode(RadialDataTransitionMode value) → PieChartStyle

Available on PieChartStyle, provided by the PieChartStyleFluent extension

Replaces PieChartStyle.dataTransitionMode with value.
withDataTransitionMode(RadialDataTransitionMode value) → DonutChartStyle

Available on DonutChartStyle, provided by the DonutChartStyleFluent extension

Replaces DonutChartStyle.dataTransitionMode with value.
withGradient(PieGradientStyle value) → DonutChartStyle

Available on DonutChartStyle, provided by the DonutChartStyleFluent extension

Replaces DonutChartStyle.gradient with value.
withGradient(PieGradientStyle value) → PieChartStyle

Available on PieChartStyle, provided by the PieChartStyleFluent extension

Replaces PieChartStyle.gradient with value.
withInnerRadiusFactor(double value) → DonutChartStyle

Available on DonutChartStyle, provided by the DonutChartStyleFluent extension

Replaces DonutChartStyle.innerRadiusFactor with value.
withOpacity(double value) → DonutChartStyle

Available on DonutChartStyle, provided by the DonutChartStyleFluent extension

Replaces DonutChartStyle.opacity with value.
withOpacity(double value) → PieChartStyle

Available on PieChartStyle, provided by the PieChartStyleFluent extension

Replaces PieChartStyle.opacity with value.
withRadiusFactor(double value) → PieChartStyle

Available on PieChartStyle, provided by the PieChartStyleFluent extension

Replaces PieChartStyle.radiusFactor with value.
withRadiusFactor(double value) → DonutChartStyle

Available on DonutChartStyle, provided by the DonutChartStyleFluent extension

Replaces DonutChartStyle.radiusFactor with value.
withSelectedElevation(PieElevationStyle value) → PieChartStyle

Available on PieChartStyle, provided by the PieChartStyleFluent extension

Replaces PieChartStyle.selectedElevation with value.
withSelectedElevation(PieElevationStyle value) → DonutChartStyle

Available on DonutChartStyle, provided by the DonutChartStyleFluent extension

Replaces DonutChartStyle.selectedElevation with value.
withSelectionExplodeOffset(double value) → DonutChartStyle

Available on DonutChartStyle, provided by the DonutChartStyleFluent extension

Replaces DonutChartStyle.selectionExplodeOffset with value.
withSelectionExplodeOffset(double value) → PieChartStyle

Available on PieChartStyle, provided by the PieChartStyleFluent extension

Replaces PieChartStyle.selectionExplodeOffset with value.
withShadow(PieElevationStyle value) → PieChartStyle

Available on PieChartStyle, provided by the PieChartStyleFluent extension

Replaces PieChartStyle.shadow with value.
withShadow(PieElevationStyle value) → DonutChartStyle

Available on DonutChartStyle, provided by the DonutChartStyleFluent extension

Replaces DonutChartStyle.shadow with value.
withSliceGap(double value) → PieChartStyle

Available on PieChartStyle, provided by the PieChartStyleFluent extension

Replaces PieChartStyle.sliceGap with value.
withSliceGap(double value) → DonutChartStyle

Available on DonutChartStyle, provided by the DonutChartStyleFluent extension

Replaces DonutChartStyle.sliceGap with value.
withStartAngleDegrees(double value) → DonutChartStyle

Available on DonutChartStyle, provided by the DonutChartStyleFluent extension

Replaces DonutChartStyle.startAngleDegrees with value.
withStartAngleDegrees(double value) → PieChartStyle

Available on PieChartStyle, provided by the PieChartStyleFluent extension

Replaces PieChartStyle.startAngleDegrees with value.
withSweepAngleDegrees(double value) → DonutChartStyle

Available on DonutChartStyle, provided by the DonutChartStyleFluent extension

Replaces DonutChartStyle.sweepAngleDegrees with value.

Operators

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