configDouble static method
Implementation
static double configDouble(String key, {double fallback = 0.0}) {
if (_codePush != null && _codePush!.hasActiveBundle) {
final v = _codePush!.override.getConfig(key);
if (v != null) {
if (v is double) return v;
if (v is int) return v.toDouble();
return double.tryParse(v.toString()) ?? fallback;
}
}
final value = _client._payload.config[key];
if (value == null) return fallback;
if (value is double) return value;
if (value is int) return value.toDouble();
return double.tryParse(value.toString()) ?? fallback;
}