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