getCrossAxisCount method

dynamic getCrossAxisCount(
  1. CollageType type
)

Implementation

getCrossAxisCount(CollageType type) {
  if (type == CollageType.HSplit ||
      type == CollageType.VSplit ||
      type == CollageType.ThreeHorizontal ||
      type == CollageType.ThreeVertical)
    return 2;
  else if (type == CollageType.FourSquare)
    return 4;
  else if (type == CollageType.NineSquare)
    return 9;
  else if (type == CollageType.LeftBig || type == CollageType.RightBig)
    return 3;
  else if (type == CollageType.FourLeftBig)
    return 3;
  else if (type == CollageType.VMiddleTwo || type == CollageType.CenterBig)
    return 12;
}