etherToWei function

String etherToWei(
  1. String amount
)

Implementation

String etherToWei(String amount) {
  final weiAmount =
      Decimal.parse(amount) * Decimal.parse('1000000000000000000');
  return weiAmount.toString();
}