toDouble method Null safety

double toDouble()

Return this num as a double.

If the number is not representable as a double, an approximation is returned. For numerically large integers, the approximation may be infinite.

Implementation

double toDouble() => value.toDouble();