styleToCss function
Converts a style map into a CSS declaration string.
Implementation
String styleToCss(Map<String, Object?> style) {
return style.entries
.where((entry) => entry.value != null && entry.key != '_cssText')
.map((entry) => '${entry.key}: ${entry.value}')
.join('; ');
}