getCssForProperties function

String getCssForProperties(
  1. Map<String, dynamic> properties
)

Converts a map of text style properties into a list in CSS syntax.

Implementation

String getCssForProperties(Map<String, dynamic> properties) {
  return properties.entries
      .where((entry) => entry.key != 'class' && entry.value != null)
      .map((e) => '${e.key}: ${cssString(e.value)};')
      .join();
}