resolve method
Resolves the layered BoxShadows for this level using color (only its
RGB is used for sm..lg).
Implementation
List<BoxShadow> resolve(Color color) => switch (this) {
none => [BoxShadow(color: color, offset: const Offset(0, 1))],
sm => [
BoxShadow(color: color, offset: const Offset(0, 2), blurRadius: 8, spreadRadius: -1),
BoxShadow(color: color, offset: const Offset(0, 1), blurRadius: 3, spreadRadius: -1),
],
md => [
BoxShadow(color: color, offset: const Offset(0, 4), blurRadius: 14, spreadRadius: -2),
BoxShadow(color: color, offset: const Offset(0, 2), blurRadius: 5, spreadRadius: -1),
],
lg => [
BoxShadow(color: color, offset: const Offset(0, 8), blurRadius: 24, spreadRadius: -4),
BoxShadow(color: color, offset: const Offset(0, 5), blurRadius: 9, spreadRadius: -2),
],
};