cssText property

String get cssText

Converts raw CSS style properties to inline CSS string.

Example:

final css = {'display': 'block', 'color': 'red'};
final cssText = css.cssText;
// returns: 'display: block; color: red'

Implementation

String get cssText => entries.map((e) => '${e.key}: ${e.value};').join(' ');