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
{{ message }}
Repository navigation
Flutter should be upgraded to Dart 2 compliant mockito #14532
Current issue of mockito is 2.2.1 (latest stable release), however it is not fully Dart 2 compliant:
compiler message: file:///usr/local/google/home/vegorov/.pub-cache/hosted/pub.dartlang.org/mockito-2.2.1/lib/src/mock.dart:680:32: Error: A value of type '(#lib1::_VerifyCall) → #lib1::Mock' can't be assigned to a variable of type '(dynamic) → dynamic'.compiler message: Try changing the type of the left hand side, or casting the right hand side to '(dynamic) → dynamic'.compiler message: tmpVerifyCalls.map((_VerifyCall vc) => vc.mock).toSet();compiler message:
This makes tests using mockito fail when running in Dart 2 mode.
This issue is to track an upgrade when it becomes available. Currently only unstable 3.0.0-alpha is available.
Currently the only test in Flutter repository, I know about, that is using package mockito is packages/flutter/test/material/animated_icons_test.dart
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
srawlins commentedon Feb 9, 2018
Mockito 2.2.2 is now available which should solve the issue.
Upgrade packages (#14588)
Upgrade packages (flutter#14588)
github-actions commentedon Sep 3, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.