getRawQuantity function

dynamic getRawQuantity(
  1. double quantity,
  2. int decimals
)

Implementation

getRawQuantity(double quantity, int decimals) {
  return quantity * pow(10, decimals);
}