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

Dart 3.4.3: invocation_matcher.dart Error: The class 'DeepCollectionEquality' can't be extended outside of its library because it's a final class. #758

Open
dannnnthemannnn opened this issue Jun 20, 2024 · 1 comment

Comments

@dannnnthemannnn
Copy link

running flutter test --platform chrome (or flutter test) is giving the below issue:

flutter test  --platform chrome                                         
../../../.pub-cache/hosted/pub.dev/mockito-5.4.4/lib/src/invocation_matcher.dart:155:32: Error: The class
'DeepCollectionEquality' can't be extended outside of its library because it's a final class.
class _MatcherEquality extends DeepCollectionEquality /* <Matcher | E> */ {
                               ^
Failed to compile
flutter --version
Flutter 3.22.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 761747bfc5 (2 weeks ago) • 2024-06-05 22:15:13 +0200
Engine • revision edd8546116
Tools • Dart 3.4.3 • DevTools 2.34.3
@srawlins
Copy link
Member

Thanks for the report! Can you show what version of the collection package is in play (e.g. from your pubspec.lock file)? I cannot find any version of the collection package where DeepCollectionEquality is final.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants