toCSS method
- @override
override
Implementation
@override
String toCSS(Contexts context) {
String value = (key is Node) ? key.toCSS(context) : key;
if (op != null) {
final String attr =
(this.value is Node) ? this.value.toCSS(context) : this.value;
value = '$value$op$attr';
}
return '[$value]';
//2.3.1
// Attribute.prototype.toCSS = function (context) {
// var value = this.key.toCSS ? this.key.toCSS(context) : this.key;
//
// if (this.op) {
// value += this.op;
// value += (this.value.toCSS ? this.value.toCSS(context) : this.value);
// }
//
// return '[' + value + ']';
// };
}