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
-
- Object
- PieChartStyle
- DonutChartStyle
- Available extensions
- Annotations
-
- @immutable
- @chartSurface
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 tonull. -
clearAnimationMode(
) → PieChartStyle -
Available on PieChartStyle, provided by the PieChartStyleFluent extension
Clears PieChartStyle.animationMode tonull. -
clearBorderColor(
) → DonutChartStyle -
Available on DonutChartStyle, provided by the DonutChartStyleFluent extension
Clears DonutChartStyle.borderColor tonull. -
clearBorderColor(
) → PieChartStyle -
Available on PieChartStyle, provided by the PieChartStyleFluent extension
Clears PieChartStyle.borderColor tonull. -
clearBorderColorMode(
) → PieChartStyle -
Available on PieChartStyle, provided by the PieChartStyleFluent extension
Clears PieChartStyle.borderColorMode tonull. -
clearBorderColorMode(
) → DonutChartStyle -
Available on DonutChartStyle, provided by the DonutChartStyleFluent extension
Clears DonutChartStyle.borderColorMode tonull. -
clearBorderHueShiftDegrees(
) → PieChartStyle -
Available on PieChartStyle, provided by the PieChartStyleFluent extension
Clears PieChartStyle.borderHueShiftDegrees tonull. -
clearBorderHueShiftDegrees(
) → DonutChartStyle -
Available on DonutChartStyle, provided by the DonutChartStyleFluent extension
Clears DonutChartStyle.borderHueShiftDegrees tonull. -
clearBorderLightnessShift(
) → PieChartStyle -
Available on PieChartStyle, provided by the PieChartStyleFluent extension
Clears PieChartStyle.borderLightnessShift tonull. -
clearBorderLightnessShift(
) → DonutChartStyle -
Available on DonutChartStyle, provided by the DonutChartStyleFluent extension
Clears DonutChartStyle.borderLightnessShift tonull. -
clearBorderSaturationShift(
) → PieChartStyle -
Available on PieChartStyle, provided by the PieChartStyleFluent extension
Clears PieChartStyle.borderSaturationShift tonull. -
clearBorderSaturationShift(
) → DonutChartStyle -
Available on DonutChartStyle, provided by the DonutChartStyleFluent extension
Clears DonutChartStyle.borderSaturationShift tonull. -
clearCornerRadius(
) → PieChartStyle -
Available on PieChartStyle, provided by the PieChartStyleFluent extension
Clears PieChartStyle.cornerRadius tonull. -
clearCornerRadius(
) → DonutChartStyle -
Available on DonutChartStyle, provided by the DonutChartStyleFluent extension
Clears DonutChartStyle.cornerRadius tonull. -
clearCornerTreatment(
) → PieChartStyle -
Available on PieChartStyle, provided by the PieChartStyleFluent extension
Clears PieChartStyle.cornerTreatment tonull. -
clearCornerTreatment(
) → DonutChartStyle -
Available on DonutChartStyle, provided by the DonutChartStyleFluent extension
Clears DonutChartStyle.cornerTreatment tonull. -
clearGradient(
) → PieChartStyle -
Available on PieChartStyle, provided by the PieChartStyleFluent extension
Clears PieChartStyle.gradient tonull. -
clearGradient(
) → DonutChartStyle -
Available on DonutChartStyle, provided by the DonutChartStyleFluent extension
Clears DonutChartStyle.gradient tonull. -
clearOpacity(
) → PieChartStyle -
Available on PieChartStyle, provided by the PieChartStyleFluent extension
Clears PieChartStyle.opacity tonull. -
clearOpacity(
) → DonutChartStyle -
Available on DonutChartStyle, provided by the DonutChartStyleFluent extension
Clears DonutChartStyle.opacity tonull. -
clearSelectedElevation(
) → PieChartStyle -
Available on PieChartStyle, provided by the PieChartStyleFluent extension
Clears PieChartStyle.selectedElevation tonull. -
clearSelectedElevation(
) → DonutChartStyle -
Available on DonutChartStyle, provided by the DonutChartStyleFluent extension
Clears DonutChartStyle.selectedElevation tonull. -
clearShadow(
) → PieChartStyle -
Available on PieChartStyle, provided by the PieChartStyleFluent extension
Clears PieChartStyle.shadow tonull. -
clearShadow(
) → DonutChartStyle -
Available on DonutChartStyle, provided by the DonutChartStyleFluent extension
Clears DonutChartStyle.shadow tonull. -
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 withvalue. -
withAnimationMode(
PieAnimationMode value) → DonutChartStyle -
Available on DonutChartStyle, provided by the DonutChartStyleFluent extension
Replaces DonutChartStyle.animationMode withvalue. -
withBorderColor(
Color value) → DonutChartStyle -
Available on DonutChartStyle, provided by the DonutChartStyleFluent extension
Replaces DonutChartStyle.borderColor withvalue. -
withBorderColor(
Color value) → PieChartStyle -
Available on PieChartStyle, provided by the PieChartStyleFluent extension
Replaces PieChartStyle.borderColor withvalue. -
withBorderColorMode(
PieBorderColorMode value) → PieChartStyle -
Available on PieChartStyle, provided by the PieChartStyleFluent extension
Replaces PieChartStyle.borderColorMode withvalue. -
withBorderColorMode(
PieBorderColorMode value) → DonutChartStyle -
Available on DonutChartStyle, provided by the DonutChartStyleFluent extension
Replaces DonutChartStyle.borderColorMode withvalue. -
withBorderHueShiftDegrees(
double value) → PieChartStyle -
Available on PieChartStyle, provided by the PieChartStyleFluent extension
Replaces PieChartStyle.borderHueShiftDegrees withvalue. -
withBorderHueShiftDegrees(
double value) → DonutChartStyle -
Available on DonutChartStyle, provided by the DonutChartStyleFluent extension
Replaces DonutChartStyle.borderHueShiftDegrees withvalue. -
withBorderLightnessShift(
double value) → DonutChartStyle -
Available on DonutChartStyle, provided by the DonutChartStyleFluent extension
Replaces DonutChartStyle.borderLightnessShift withvalue. -
withBorderLightnessShift(
double value) → PieChartStyle -
Available on PieChartStyle, provided by the PieChartStyleFluent extension
Replaces PieChartStyle.borderLightnessShift withvalue. -
withBorderSaturationShift(
double value) → PieChartStyle -
Available on PieChartStyle, provided by the PieChartStyleFluent extension
Replaces PieChartStyle.borderSaturationShift withvalue. -
withBorderSaturationShift(
double value) → DonutChartStyle -
Available on DonutChartStyle, provided by the DonutChartStyleFluent extension
Replaces DonutChartStyle.borderSaturationShift withvalue. -
withBorderWidth(
double value) → PieChartStyle -
Available on PieChartStyle, provided by the PieChartStyleFluent extension
Replaces PieChartStyle.borderWidth withvalue. -
withBorderWidth(
double value) → DonutChartStyle -
Available on DonutChartStyle, provided by the DonutChartStyleFluent extension
Replaces DonutChartStyle.borderWidth withvalue. -
withClockwise(
bool value) → DonutChartStyle -
Available on DonutChartStyle, provided by the DonutChartStyleFluent extension
Replaces DonutChartStyle.clockwise withvalue. -
withClockwise(
bool value) → PieChartStyle -
Available on PieChartStyle, provided by the PieChartStyleFluent extension
Replaces PieChartStyle.clockwise withvalue. -
withCornerRadius(
double value) → DonutChartStyle -
Available on DonutChartStyle, provided by the DonutChartStyleFluent extension
Replaces DonutChartStyle.cornerRadius withvalue. -
withCornerRadius(
double value) → PieChartStyle -
Available on PieChartStyle, provided by the PieChartStyleFluent extension
Replaces PieChartStyle.cornerRadius withvalue. -
withCornerTreatment(
PieCornerTreatment value) → DonutChartStyle -
Available on DonutChartStyle, provided by the DonutChartStyleFluent extension
Replaces DonutChartStyle.cornerTreatment withvalue. -
withCornerTreatment(
PieCornerTreatment value) → PieChartStyle -
Available on PieChartStyle, provided by the PieChartStyleFluent extension
Replaces PieChartStyle.cornerTreatment withvalue. -
withDataTransitionMode(
RadialDataTransitionMode value) → PieChartStyle -
Available on PieChartStyle, provided by the PieChartStyleFluent extension
Replaces PieChartStyle.dataTransitionMode withvalue. -
withDataTransitionMode(
RadialDataTransitionMode value) → DonutChartStyle -
Available on DonutChartStyle, provided by the DonutChartStyleFluent extension
Replaces DonutChartStyle.dataTransitionMode withvalue. -
withGradient(
PieGradientStyle value) → DonutChartStyle -
Available on DonutChartStyle, provided by the DonutChartStyleFluent extension
Replaces DonutChartStyle.gradient withvalue. -
withGradient(
PieGradientStyle value) → PieChartStyle -
Available on PieChartStyle, provided by the PieChartStyleFluent extension
Replaces PieChartStyle.gradient withvalue. -
withInnerRadiusFactor(
double value) → DonutChartStyle -
Available on DonutChartStyle, provided by the DonutChartStyleFluent extension
Replaces DonutChartStyle.innerRadiusFactor withvalue. -
withOpacity(
double value) → DonutChartStyle -
Available on DonutChartStyle, provided by the DonutChartStyleFluent extension
Replaces DonutChartStyle.opacity withvalue. -
withOpacity(
double value) → PieChartStyle -
Available on PieChartStyle, provided by the PieChartStyleFluent extension
Replaces PieChartStyle.opacity withvalue. -
withRadiusFactor(
double value) → PieChartStyle -
Available on PieChartStyle, provided by the PieChartStyleFluent extension
Replaces PieChartStyle.radiusFactor withvalue. -
withRadiusFactor(
double value) → DonutChartStyle -
Available on DonutChartStyle, provided by the DonutChartStyleFluent extension
Replaces DonutChartStyle.radiusFactor withvalue. -
withSelectedElevation(
PieElevationStyle value) → PieChartStyle -
Available on PieChartStyle, provided by the PieChartStyleFluent extension
Replaces PieChartStyle.selectedElevation withvalue. -
withSelectedElevation(
PieElevationStyle value) → DonutChartStyle -
Available on DonutChartStyle, provided by the DonutChartStyleFluent extension
Replaces DonutChartStyle.selectedElevation withvalue. -
withSelectionExplodeOffset(
double value) → DonutChartStyle -
Available on DonutChartStyle, provided by the DonutChartStyleFluent extension
Replaces DonutChartStyle.selectionExplodeOffset withvalue. -
withSelectionExplodeOffset(
double value) → PieChartStyle -
Available on PieChartStyle, provided by the PieChartStyleFluent extension
Replaces PieChartStyle.selectionExplodeOffset withvalue. -
withShadow(
PieElevationStyle value) → PieChartStyle -
Available on PieChartStyle, provided by the PieChartStyleFluent extension
Replaces PieChartStyle.shadow withvalue. -
withShadow(
PieElevationStyle value) → DonutChartStyle -
Available on DonutChartStyle, provided by the DonutChartStyleFluent extension
Replaces DonutChartStyle.shadow withvalue. -
withSliceGap(
double value) → PieChartStyle -
Available on PieChartStyle, provided by the PieChartStyleFluent extension
Replaces PieChartStyle.sliceGap withvalue. -
withSliceGap(
double value) → DonutChartStyle -
Available on DonutChartStyle, provided by the DonutChartStyleFluent extension
Replaces DonutChartStyle.sliceGap withvalue. -
withStartAngleDegrees(
double value) → DonutChartStyle -
Available on DonutChartStyle, provided by the DonutChartStyleFluent extension
Replaces DonutChartStyle.startAngleDegrees withvalue. -
withStartAngleDegrees(
double value) → PieChartStyle -
Available on PieChartStyle, provided by the PieChartStyleFluent extension
Replaces PieChartStyle.startAngleDegrees withvalue. -
withSweepAngleDegrees(
double value) → DonutChartStyle -
Available on DonutChartStyle, provided by the DonutChartStyleFluent extension
Replaces DonutChartStyle.sweepAngleDegrees withvalue.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override