AssetAmount.fromQuantity constructor

AssetAmount.fromQuantity(
  1. AssetCode assetCode,
  2. dynamic quantity
)

Implementation

factory AssetAmount.fromQuantity(AssetCode assetCode, quantity) {
  return AssetAmount(quantity: parseValue(quantity), assetCode: assetCode);
}