Open exaby73 opened 1 year ago
The entire package should be migrated to Dart 3.0. That would be one of the changes.
What would be the process for this? Maybe the min version would be updated first, then the migration of the code, or everything in one PR?
@exaby73 @kevmoo this package minimum sdk version has been updated, so I think the barrier to Sealed Class is gone!
you mean minimum SDK version?
This line was updated.
@exaby73 , do you want to create a PR? Shall I make one?
https://github.com/dart-lang/async/blob/c0d81f8699682d01d657a9bf827107d11904a247/pubspec.yaml#L7
Since we have had Dart 3, we have access to sealed classes. I propose we migrate the
Result
class tosealed
instead ofabstract
. I have done so in a fork. See the comparison. But since the minimum version had to be changed to>=3.0.0 <4.0.0
, I'd like to first discuss this