cssText property

  1. @override
String get cssText
override

Textual representation of the declaration block. Setting this attribute changes the style.

Implementation

@override
String get cssText {
  Map<CSSPropertyID, String> reverse(Map map) => {for (var e in map.entries) e.value: e.key};
  final propertyMap = reverse(CSSPropertyNameMap);

  StringBuffer result = StringBuffer();
  for (var id in ComputedProperties) {
    final name = propertyMap[id] ?? '';
    final value = getPropertyValue(name);

    result.write(' ');
    result.write(propertyMap[id]);
    result.write(': ');
    result.write(value);
    result.write(';');
  }
  return result.toString();
}
set cssText (String value)

Implementation

set cssText(value) {}