toAptos static method

String toAptos(
  1. BigInt apt
)

Converts a BigInt value representing an Aptos amount in the smallest unit back to a string with the standard decimal precision (8 decimal places).

Implementation

static String toAptos(BigInt apt) {
  final price = BigRational(apt);
  return (price / _decimal).toDecimal(digits: decimal);
}