Amount.from constructor

Amount.from({
  1. required int value,
  2. required int decimals,
})

Converts the given value to a BigInt This is useful when the value is already in the smallest unit of the currency

Implementation

Amount.from({
  required int value,
  required this.decimals,
}) : value = BigInt.from(value);