cssText method
Implementation
String cssText() {
switch (type) {
case CSSLengthType.PX:
case CSSLengthType.EM:
return '${computedValue.cssText()}px';
case CSSLengthType.REM:
return '${value?.cssText()}rem';
case CSSLengthType.VH:
return '${value?.cssText()}vh';
case CSSLengthType.VW:
return '${value?.cssText()}vw';
case CSSLengthType.VMIN:
return '${value?.cssText()}vmin';
case CSSLengthType.VMAX:
return '${value?.cssText()}vmax';
case CSSLengthType.PERCENTAGE:
return '${(value! * 100).cssText()}%';
case CSSLengthType.UNKNOWN:
case CSSLengthType.AUTO:
return 'auto';
case CSSLengthType.NONE:
case CSSLengthType.NORMAL:
case CSSLengthType.INITIAL:
break;
}
return '';
}