toListNum method

List<num> toListNum()

Integer-valued numbers within the safe integer range (±(2^53 - 1)) are returned as int, others as double.

Implementation

List<num> toListNum() => toDart.map((e) {
  var d = e.toDartDouble;
  return _isIntegral(d) ? d.toInt() : d;
}).toList();