parseDirection static method

TextDirection? parseDirection(
  1. String value
)

Implementation

static TextDirection? parseDirection(String value) {
  switch (value) {
    case LTR:
      return TextDirection.ltr;
    case RTL:
      return TextDirection.rtl;
    case INHERIT:
      return TextDirection.ltr;
  }
  return null;
}