Money constructor

Money(
  1. double value,
  2. String currency
)

Creates a Money instance.

value - The monetary value. Must not be negative. currency - The currency code.

Implementation

Money(this.value, this.currency);