fromSun static method

String fromSun(
  1. BigInt amount
)

Converts a bigint sun to trx with decimal.

Implementation

static String fromSun(BigInt amount) {
  final parse = BigRational(amount);
  return (parse / _trxDecimal).toDecimal(digits: 6);
}