formatUnitsByInt method
========================================================================== Conversion
Implementation
formatUnitsByInt(
BigInt value, {
int unit = 18,
}) {
if (unit == 0) {
return value;
}
return Decimal.parse((value / BigInt.from(10).pow(unit)).toString())
.toString();
}