EtherAmount.fromBase10String constructor
Constructs an amount of Ether by a unit and its amount.
Implementation
factory EtherAmount.fromBase10String(EtherUnit unit, String amount) {
final wei = _factors[unit]! * BigInt.parse(amount);
return EtherAmount.inWei(wei);
}