flexStyleEdgeFromInt function

FlexStyleEdge flexStyleEdgeFromInt(
  1. int value
)

Implementation

FlexStyleEdge flexStyleEdgeFromInt(int value) {
  switch (value) {
    case 0:
      return FlexStyleEdge.left;
    case 1:
      return FlexStyleEdge.top;
    case 2:
      return FlexStyleEdge.right;
    case 3:
      return FlexStyleEdge.bottom;
    case 4:
      return FlexStyleEdge.start;
    case 5:
      return FlexStyleEdge.end;
    case 6:
      return FlexStyleEdge.horizontal;
    case 7:
      return FlexStyleEdge.vertical;
    case 8:
      return FlexStyleEdge.all;
    default:
      throw ArgumentError("flexStyleEdgeFromInt Unknown enum value: $value");
  }
}