BoxShadowUtils extension
👓 Box Shadow Utilities
Extension on BoxShadow for manipulation of shadows by copyWith.
Consider the operator
overrides for even simpler syntax.
- on
Methods
Operators
-
operator %(
Offset offsetScale) → BoxShadow -
📏 "Modulate"
this
BoxShadow byoffsetScale
. -
operator *(
dynamic operation) → BoxShadow -
❌ "Multiply"
this
BoxShadow by a Color or double. -
operator +(
double spreadSmudge) → BoxShadow -
➕ "Add" a
double
tothis
BoxShadow, returning a newBoxShadow
with smudged, or increased, BoxShadow.spreadRadius. -
operator -(
double spreadSquish) → BoxShadow -
➖ "Subtract" a
double
fromthis
BoxShadow, returning a newBoxShadow
with squished, or decreased, BoxShadow.spreadRadius.