weiToEther function

String weiToEther(
  1. String amount
)

Implementation

String weiToEther(String amount) {
  final ethAmount =
      Decimal.parse(amount) / Decimal.parse('1000000000000000000');
  return ethAmount.toDecimal().toString();
}