double getInfinityOrCustom(double custom) { return DeviceHelper.isMobile ? double.infinity : custom; }