formatEther static method
Formats wei to a human-readable ether string.
Example:
EthUnit.formatEther(BigInt.parse('1000000000000000000')); // '1'
EthUnit.formatEther(BigInt.parse('1500000000000000000')); // '1.5'
Implementation
static String formatEther(BigInt wei) {
return _formatDecimal(wei, 18);
}