expressionToDirection static method
Implementation
static TextDirection expressionToDirection(css.Expression value) {
if (value is css.LiteralTerm) {
switch(value.text) {
case "ltr":
return TextDirection.ltr;
case "rtl":
return TextDirection.rtl;
}
}
return TextDirection.ltr;
}