-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make use of new dart api for compute #1974
Conversation
Pretty neat to get rid of the custom handling but can we actually raise to Dart 3.0.0? I am all for it :) |
Technically, this change only needs Dart 2.19. But given, the ecosystem is quite good at being up to date, I would say it's okay. |
I would be excited to see records and patterns in our packages if we use 3.0 😮. However, if we do so, we might need to consider maintaining separate branches given the fact that thousands (on GitHub) of projects are using Dio 4.0. |
I reduced the Dart version down to 2.19. That's still higher than the current, but it should be acceptable. |
@@ -10,7 +10,7 @@ import '../response.dart'; | |||
Dio createDio([BaseOptions? options]) => DioForBrowser(options); | |||
|
|||
/// Implements features for [Dio] on Web platforms. | |||
class DioForBrowser with DioMixin implements Dio { | |||
class DioForBrowser extends DioMixin implements Dio { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we make DioMixin
as mixin instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I guess that makes sense. Not in this PR though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RSLGTM
Get rid of a lot of code by using a newer Dart API. Also fix some unrelated issues on the v6 branch.
This targets the v6 branch