A shadow cast by a box.
BoxShadow can cast non-rectangular shadows if the box is non-rectangular (e.g., has a border radius or a circular shape).
This class is similar to CSS box-shadow.
Static Methods
Constructors
Properties
- blurRadius → double
-
The standard deviation of the Gaussian to convolve with the box's shape.
read-only - blurSigma → double
-
The
blurRadius
in sigmas instead of logical pixels.read-only - color → Color
-
The color of the shadow.
read-only - hashCode → int
-
read-only
- offset → Offset
-
The displacement of the shadow from the box.
read-only - spreadRadius → double
-
The amount the box should be inflated prior to applying the blur.
read-only - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Operators
-
operator ==(
other) → bool -
The equality operator.
Methods
-
scale(
double factor) → BoxShadow -
Returns a new box shadow with its offset, blurRadius, and spreadRadius scaled by the given factor.
-
toString(
) → String -
Returns a string representation of this object.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited