toSui static method

String toSui(
  1. BigInt mist
)

Converts a Mist value (BigInt) to its SUI representation (string) with 9 decimal places.

Implementation

static String toSui(BigInt mist) {
  final price = BigRational(mist);
  return (price / _suiDecimal).toDecimal(digits: decimal);
}