ether static method

BigInt ether(
  1. String value
)

Converts an ether string value to wei.

Example:

EthUnit.ether('1.5'); // 1.5 ether in wei

Implementation

static BigInt ether(String value) {
  return _parseDecimal(value, 18);
}