Skip to content
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

ERROR: The method 'copyWith' isn't defined for the type 'DateTime'. #5

Closed
Daneel87 opened this issue Dec 7, 2022 · 1 comment
Closed
Assignees
Labels
bug Something isn't working

Comments

@Daneel87
Copy link

Daneel87 commented Dec 7, 2022

had to stick with version pre 1.0.0 because this error is present on 1.x.x

@chaudharydeepanshu
Copy link
Owner

@Daneel87 I have uploaded a new version with the fix 1.0.2 .

Sorry, for this issue. I forgot that I was using the flutter master channel when coding that update and recently in Dart 2.19 support for DateTime.copyWith was added(dart-lang/sdk#24644) which lead to this issue.
And For now, I added an extension method so it will still work with the older versions of darts.

Thank you for reporting the issue.

@chaudharydeepanshu chaudharydeepanshu self-assigned this Feb 11, 2023
@chaudharydeepanshu chaudharydeepanshu added the bug Something isn't working label Feb 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants