listDouble method
get value as list of double
if required
argument is true then all the list is not null
Implementation
List<double?>? listDouble(String i, [bool required = false]) {
final data = map[i];
if (data == null) {
throw HTTPException(422, 'field $i is required');
}
return data.map((e) {
double? i2 = e.toDouble();
if (i2 == null && required) {
throw HTTPException(422, 'field $i is not a list of doubles');
}
return i2;
}).toList();
}