fromValue static method

SupportedExdScreenLayouts fromValue(
  1. int value
)

Implementation

static SupportedExdScreenLayouts fromValue(int value) {
  switch (value) {
    case 1:
      return SupportedExdScreenLayouts.fullScreen;
    case 2:
      return SupportedExdScreenLayouts.halfVertical;
    case 4:
      return SupportedExdScreenLayouts.halfHorizontal;
    case 8:
      return SupportedExdScreenLayouts.halfVerticalRightSplit;
    case 16:
      return SupportedExdScreenLayouts.halfHorizontalBottomSplit;
    case 32:
      return SupportedExdScreenLayouts.fullQuarterSplit;
    case 64:
      return SupportedExdScreenLayouts.halfVerticalLeftSplit;
    case 128:
      return SupportedExdScreenLayouts.halfHorizontalTopSplit;
    default:
      throw ArgumentError.value(value);
  }
}