ShapeShadow class

Inheritance

Constructors

ShapeShadow({Color color = const Color(0xFF000000), Offset offset = Offset.zero, double blurRadius = 0.0, double spreadRadius = 0.0, Gradient? gradient, BlurStyle blurStyle = BlurStyle.normal})
Creates a shape shadow.
const
ShapeShadow.fromBoxShadow(BoxShadow source)
factory

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
final
color Color
Color that the shadow will be drawn with.
finalinherited
gradient Gradient?
This gradient will only be used by the ShadowedShape class. If used by other class, this gradient takes no effect
final
hashCode int
The hash code for this object.
no setteroverride
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.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scale(double factor) ShapeShadow
Returns a new box shadow with its offset, blurRadius, and spreadRadius scaled by the given factor.
override
toJson() Map<String, dynamic>
toPaint() Paint
Create the Paint object that corresponds to this shadow description.
override
toString() String
A string representation of this object.
override

Operators

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

Static Methods

lerp(ShapeShadow? a, ShapeShadow? b, double t) ShapeShadow?
Linearly interpolate between two box shadows.
override
lerpList(List<ShapeShadow>? a, List<ShapeShadow>? b, double t) List<ShapeShadow>?
Linearly interpolate between two lists of box shadows.
override