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

Constructors

PieElevationStyle({Color? color, double blurRadius = 0, double spreadRadius = 0, Offset offset = Offset.zero, double opacity = 1})
Creates an elevation layer.
const

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 to null.
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 with value.
withColor(Color value) → PieElevationStyle

Available on PieElevationStyle, provided by the PieElevationStyleFluent extension

Replaces PieElevationStyle.color with value.
withOffset(Offset value) → PieElevationStyle

Available on PieElevationStyle, provided by the PieElevationStyleFluent extension

Replaces PieElevationStyle.offset with value.
withOpacity(double value) → PieElevationStyle

Available on PieElevationStyle, provided by the PieElevationStyleFluent extension

Replaces PieElevationStyle.opacity with value.
withSpreadRadius(double value) → PieElevationStyle

Available on PieElevationStyle, provided by the PieElevationStyleFluent extension

Replaces PieElevationStyle.spreadRadius with value.

Operators

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