getCrossAxisCount static method

int getCrossAxisCount({
  1. int? iphone,
  2. int? ipad,
  3. int? ipadLandscape,
})

Implementation

static int getCrossAxisCount({
  int? iphone,
  int? ipad,
  int? ipadLandscape,
}) {
  switch (DeviceUtil.getDeviceType()) {
    case Device.iphone:
      return iphone ?? 1;
    case Device.ipad:
      return ipad ?? 2;
    case Device.ipadLandscape:
      return ipadLandscape ?? 3;
  }
}