toHeightTypeLandscape function

HeightTypeLandscape toHeightTypeLandscape(
  1. int? index
)

Implementation

HeightTypeLandscape toHeightTypeLandscape(int? index) {
  switch (index) {
    case 0:
      return HeightTypeLandscape.absoluteHeight;
    case 1:
      return HeightTypeLandscape.percentageHeight;
  }
  return HeightTypeLandscape.unknown;
}