toUnit method

  1. @override
double toUnit(
  1. int decimals
)
override

Converts this Uint256 to a double giving the decimals.

Returns an double

Implementation

@override
double toUnit(int decimals) {
  return _value / BigInt.from(pow(10, decimals));
}