The 128 bit type implementations used a 64 bit number which isn't allowed on the Dart web platform (32 bits is the max supported). This switches from the BigInt from which takes a number to the parse function which uses a string to create a BigInt instance.
Test Plan
from and parse are identical except that parse can throw an exception, in our usage it can never throw because the value is static.
Summary
The 128 bit type implementations used a 64 bit number which isn't allowed on the Dart web platform (32 bits is the max supported). This switches from the BigInt
from
which takes a number to theparse
function which uses a string to create a BigInt instance.Test Plan
from
andparse
are identical except thatparse
can throw an exception, in our usage it can never throw because the value is static.