getFlex static method

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

Implementation

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