toDouble method Null safety

Distribution<double> toDouble()

Implementation

Distribution<double> toDouble() {
  return map<double>((v) => v.toDouble(), reverse: (v) => v.toInt());
}