Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.19.4, on macOS 14.4.1 23E224 darwin-arm64, locale en-CA)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.2)
When using older Dart version sdk: ">=2.7.0 <3.0.0" and mockito: ^5.2.0 the code above does not have any issue.
Is there any proper way to create mock for File and IOSink like above?
Thank you
Hello,
I am using mockito for mocking File and IOSink to test, and recent got the error:
When using Dart SDK
sdk: '>=3.3.2 <4.0.0'
andmockito: 5.4.4
with below example code is has error:Environment info:
When using older Dart version
sdk: ">=2.7.0 <3.0.0"
andmockito: ^5.2.0
the code above does not have any issue.Is there any proper way to create mock for File and IOSink like above? Thank you