You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a class with fields or methods marked as @Deprecated("someMessage") are Mocked, the @Deprecated is stripped away from the resulting Mock class.
It's very helpful for Dart Analysis to point out deprecated code with warnings, but with Mocked classes, the warnings all disappear - methods that are or aren't deprecated are indistinguishable from each other. Updating tests becomes quite the chore.
It would be helpful to include a way to toggle including / excluding @Deprecated annotations when generating Mocks, though to prevent a breaking change, I suspect it would have to be set to false by default.