resolveFlexDirection static method

FlexDirection resolveFlexDirection(
  1. String flexDirection
)

Implementation

static FlexDirection resolveFlexDirection(String flexDirection) {
  switch (flexDirection) {
    case 'row-reverse':
      return FlexDirection.rowReverse;
    case 'column':
      return FlexDirection.column;
    case 'column-reverse':
      return FlexDirection.columnReverse;
    case 'row':
    default:
      return FlexDirection.row;
  }
}