formatUnitsByEtherUnit method

dynamic formatUnitsByEtherUnit(
  1. BigInt value, {
  2. EtherUnit unit = EtherUnit.ether,
})

Implementation

formatUnitsByEtherUnit(
  BigInt value, {
  EtherUnit unit = EtherUnit.ether,
}) {
  return Decimal.parse((value / _factors[unit]!).toString()).toString();
}