-
Notifications
You must be signed in to change notification settings - Fork 351
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
When generating == overrides, use Object instead of dynamic #1192
Comments
It does seem weird to me that the argument to |
I do agree. It's what the dart language actually uses https://api.dart.dev/stable/2.13.0/dart-core/Object/operator_equals.html But I'm wondering if there's a way I can disable fake generation to allow me use the generator again. |
In my defense, it used to be dynamic before the sdk has been migrated to null safety. Obviously |
Thanks for the quick change! |
I'm using moor and mockito packages together. I've found a problem where mockito can't fake objects because moor generates the equals operator with dynamic instead of Object.
The generated class for moor uses the following equals operator
Where changing to
Allows mock to override the implementation for a proper mock.
The text was updated successfully, but these errors were encountered: