cssTextShadowToFlutter static method
Convert CSS text shadow string to Flutter Shadow
Implementation
static String cssTextShadowToFlutter(String cssTextShadow) {
// Handle multiple shadows (comma-separated)
if (cssTextShadow.contains(',')) {
final shadows = cssTextShadow.split(',').map((s) => s.trim()).toList();
final flutterShadows = shadows
.map((shadow) => _parseSingleTextShadow(shadow))
.toList();
return '[${flutterShadows.join(', ')}]';
}
// Single shadow
return _parseSingleTextShadow(cssTextShadow);
}