expressionToDirection static method

TextDirection expressionToDirection(
  1. Expression value
)

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;
}