Decimal.fromDouble constructor
Constructs a decimal number from double.
Example
final decimal = Decimal.fromDouble(3.14, fractionDigits: 2);
Implementation
const factory Decimal.fromDouble(num value, {required int fractionDigits}) =
_NumDecimal;