bigIntToDouble static method

double bigIntToDouble(
  1. BigInt? value,
  2. int decimals
)

number transform 2: from

Implementation

static double bigIntToDouble(BigInt? value, int decimals) {
  if (value == null) {
    return 0;
  }
  return value / BigInt.from(pow(10, decimals));
}