PieElevationStyle class
A reusable blurred elevation layer for pie slices.
A downward offset and dark color reads as a shadow. A zero offset with a slice-derived color reads as a glow. When color is null, the renderer derives the layer from the slice color.
- Available extensions
- Annotations
-
- @immutable
- @chartSurface
Constructors
Properties
- blurRadius → double
-
Soft-edge blur extent in logical pixels.
final
- color → Color?
-
Optional fixed layer color; null derives it from the slice.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- isVisible → bool
-
Whether this layer changes the rendered output.
no setter
- offset → Offset
-
Layer offset in logical pixels.
final
- opacity → double
-
Layer opacity in the inclusive range 0–1.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- spreadRadius → double
-
Extra logical pixels drawn around the slice before blur.
final
Methods
-
clearColor(
) → PieElevationStyle -
Available on PieElevationStyle, provided by the PieElevationStyleFluent extension
Clears PieElevationStyle.color tonull. -
copyWith(
{Color? color, bool clearColor = false, double? blurRadius, double? spreadRadius, Offset? offset, double? opacity}) → PieElevationStyle - 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
-
withBlurRadius(
double value) → PieElevationStyle -
Available on PieElevationStyle, provided by the PieElevationStyleFluent extension
Replaces PieElevationStyle.blurRadius withvalue. -
withColor(
Color value) → PieElevationStyle -
Available on PieElevationStyle, provided by the PieElevationStyleFluent extension
Replaces PieElevationStyle.color withvalue. -
withOffset(
Offset value) → PieElevationStyle -
Available on PieElevationStyle, provided by the PieElevationStyleFluent extension
Replaces PieElevationStyle.offset withvalue. -
withOpacity(
double value) → PieElevationStyle -
Available on PieElevationStyle, provided by the PieElevationStyleFluent extension
Replaces PieElevationStyle.opacity withvalue. -
withSpreadRadius(
double value) → PieElevationStyle -
Available on PieElevationStyle, provided by the PieElevationStyleFluent extension
Replaces PieElevationStyle.spreadRadius withvalue.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override