value property

double value

get the value of the money as a double

Implementation

double get value => (_value / _multiplier);
void value=(double newValue)

set the internal value of the money as a double.

Implementation

set value(double newValue) {
  _value = BigInt.from((newValue * _multiplier.toInt()).round());
}