fromDouble static method

Decimal fromDouble(
  1. double value
)

Implementation

static Decimal fromDouble(double value) => Decimal.parse(value.toString());