getDouble method
Implementation
double getDouble(String key) {
final value = this[key];
if (value is String) {
return double.parse(value);
}
if (value is int) {
return double.parse(value.toString());
}
if (value is bool) {
return value ? 1 : 0;
}
if (value is double) {
return value;
}
return 0;
}