BoxShadowsUtils extension
⛅ Box Shadows Utilities
-
🎨 colorize a
List<BoxShadow>
with a single[Color]
orList
colors
.- Optionally ❓
preserveOpacity
of the originalColor
s
- Optionally ❓
-
📊 rampOpacity of a
List<BoxShadow>
with a single[double]
orList
stops
.- Optionally 🎨 provide a
color
to replace the originals and ramp simultaneously
- Optionally 🎨 provide a
Methods
-
colorize(
List< Color> colors, {bool preserveOpacity = false}) → List<BoxShadow> -
Provide a
Color
orList<Color>
🎨colors
to overridethis
List's BoxShadow.colors. -
rampOpacity(
List< double> stops, {Color? color}) → List<BoxShadow> -
Return a new
List<BoxShadow>
that mirrorsthis
one except the Color.opacity of eachBoxShadow
will be set to thedouble
that matches in index from 📊stops
.