getFlex static method
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;
}
}