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
I am trying to build model and entity classes using clean architecture. Previously there was no way to properly have models implement all of the characteristics of entities in a clean way. Now with the new class modifiers in Dart 3, we can use interfaces to do this easily. The problem is that Freezed fails when doing this because it is looking for a .copyWith method of the interface class.
Superinterfaces don't have a valid override for 'copyWith': _$UserModel.copyWith ($UserModelCopyWith<UserModel> Function()), _$User..copyWith ($UserCopyWith<User> Function()).
Try adding an explicit override that is consistent with all of the inherited members.
The text was updated successfully, but these errors were encountered:
I am trying to build model and entity classes using clean architecture. Previously there was no way to properly have models implement all of the characteristics of entities in a clean way. Now with the new class modifiers in Dart 3, we can use interfaces to do this easily. The problem is that Freezed fails when doing this because it is looking for a .copyWith method of the interface class.
Gives me the error:
The text was updated successfully, but these errors were encountered: