diff --git a/pkgs/fixnum/CHANGELOG.md b/pkgs/fixnum/CHANGELOG.md index f3e5c0191..5bec83a6a 100644 --- a/pkgs/fixnum/CHANGELOG.md +++ b/pkgs/fixnum/CHANGELOG.md @@ -1,3 +1,9 @@ +## 1.2.0-wip + +* Change `IntX` such that it implements `Comparable`. This makes it + possible for `IntX` (and in turn `Int64` and `Int32`) be used with methods + like `sortedBy` in the platform libraries. + ## 1.1.1 * Require Dart `^3.1.0` diff --git a/pkgs/fixnum/lib/src/intx.dart b/pkgs/fixnum/lib/src/intx.dart index d51a58350..a42d42b91 100644 --- a/pkgs/fixnum/lib/src/intx.dart +++ b/pkgs/fixnum/lib/src/intx.dart @@ -6,7 +6,7 @@ import 'int32.dart'; import 'int64.dart'; /// A fixed-precision integer. -abstract class IntX implements Comparable { +abstract class IntX implements Comparable { /// Addition operator. IntX operator +(Object other); diff --git a/pkgs/fixnum/pubspec.yaml b/pkgs/fixnum/pubspec.yaml index 123a4b752..fb9c54638 100644 --- a/pkgs/fixnum/pubspec.yaml +++ b/pkgs/fixnum/pubspec.yaml @@ -1,5 +1,5 @@ name: fixnum -version: 1.1.1 +version: 1.2.0-wip description: >- Library for 32- and 64-bit signed fixed-width integers with consistent behavior between native and JS runtimes.