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