- Add
tryParseRadix
,tryParseInt
andtryParseHex
static methods to bothInt32
andInt64
. - Document exception and overflow behavior of parse functions,
and of
toHexString
. - Make
Int32
parse functions consistent with documentation (accept leading minus sign, do not accept empty inputs). - Update the minimum SDK constraint to 2.19.
- Update to package:lints 2.0.0.
- Switch to using
package:lints
. - Populate the pubspec
repository
field.
- Stable null safety release.
- Migrate to null safety.
- This is meant to be mostly non-breaking, for opted in users runtime errors will be promoted to static errors. For non-opted in users the runtime errors are still present in their original form.
- Update minimum SDK constraint to version 2.1.1.
- Fix
Int64
parsing to throwFormatException
on an empty string or single minus sign. Previous incorrect behaviour was to throw aRangeError
or silently return zero.
- Add
Int64.toStringUnsigned()
andInt64.toRadixStringUnsigned()
functions.
- Set SDK version constraint to
>=2.0.0-dev.65 <3.0.0
.
- Bug fix: Make bit shifts work at bitwidth boundaries. Previously,
new Int64(3) << 64 == Int64(3)
. This ensures that the result is 0 in such cases. - Updated maximum SDK constraint from 2.0.0-dev.infinity to 2.0.0.
- Fix
Int64([int value])
constructor to avoid rounding error on intermediate results for large negative inputs when compiled to JavaScript.new Int64(-1000000000000000000)
used to produce the same value asInt64.parseInt("-1000000000000000001")
- Fix strong mode warning in overridden
compareTo()
methods.
No changelog entries for previous versions...