toListOfDouble static method

List<double> toListOfDouble(
  1. dynamic d
)

Converts to not-nullable list of doubles from dynamic

Implementation

static List<double> toListOfDouble(dynamic d) {
  final jsonList = Convert.toListN(d);
  final List<double> result = [];
  if (jsonList != null) {
    jsonList.forEach((e) {
      final d = Convert.toDoubleN(e);
      if (d != null) {
        result.add(d);
      }
    });
  }
  return result;
}