BoxShadow class
The box-shadow CSS property adds shadow effects around an element's frame. A box shadow is described by X and Y offsets relative to the element, blur and spread radius, and color. You can set multiple effects using BoxShadow.combine.
Read more: MDN box-shadow
Constructors
- BoxShadow({required Unit offsetX, required Unit offsetY, Unit? blur, Unit? spread, Color? color})
-
Create a box shadow with the given offsets, blur, spread, and color.
constfactory
-
BoxShadow.combine(List<
BoxShadow> shadows) -
Combine multiple box shadows into one.
constfactory
- BoxShadow.inset({required Unit offsetX, required Unit offsetY, Unit? blur, Unit? spread, Color? color})
-
Create an inset box shadow with the given offsets, blur, spread, and color.
constfactory
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited