CustomBoxShadow class
Shadow cast by a box that allows to customize its blurStyle.
- Inheritance
- Available extensions
Constructors
- CustomBoxShadow({Color color = const Color(_kColorDefault), Offset offset = Offset.zero, double blurRadius = 0.0, BlurStyle blurStyle = BlurStyle.normal})
-
const
Properties
- blurRadius → double
-
The standard deviation of the Gaussian to convolve with the shadow's shape.
finalinherited
- blurSigma → double
-
The blurRadius in sigmas instead of logical pixels.
no setterinherited
- blurStyle → BlurStyle
-
The BlurStyle to use for this shadow.
finalinherited
- color → Color
-
Color that the shadow will be drawn with.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- offset → Offset
-
The displacement of the shadow from the casting element.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- spreadRadius → double
-
The amount the box should be inflated prior to applying the blur.
finalinherited
Methods
-
copyWith(
{Color? color, Offset? offset, double? blurRadius, double? spreadRadius, BlurStyle? blurStyle}) → BoxShadow -
Creates a copy of this object but with the given fields replaced with the
new values.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pixelSnap(
PixelSnap ps, [PixelSnapMode mode = PixelSnapMode.snap]) → BoxShadow -
Available on BoxShadow, provided by the PixelSnapExtBoxShadow extension
-
scale(
double factor) → BoxShadow -
Returns a new box shadow with its offset, blurRadius, and spreadRadius
scaled by the given factor.
inherited
-
toPaint(
) → Paint -
Create the Paint object that corresponds to this shadow description.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited