fromValue static method

ExdLayout fromValue(
  1. int value
)

Implementation

static ExdLayout fromValue(int value) {
  switch (value) {
    case 0:
      return ExdLayout.fullScreen;
    case 1:
      return ExdLayout.halfVertical;
    case 2:
      return ExdLayout.halfHorizontal;
    case 3:
      return ExdLayout.halfVerticalRightSplit;
    case 4:
      return ExdLayout.halfHorizontalBottomSplit;
    case 5:
      return ExdLayout.fullQuarterSplit;
    case 6:
      return ExdLayout.halfVerticalLeftSplit;
    case 7:
      return ExdLayout.halfHorizontalTopSplit;
    case 8:
      return ExdLayout.dynamic;
    default:
      throw ArgumentError.value(value);
  }
}