Closed artahc closed 2 years ago
Didn't try any code you posted, but I think the return Type is the culprit here...
Try Future<String?> fetch, or after the where != null, add a .cast
adding .cast()
after where
did the trick! I wonder why though...
Thank you for your help, that was quick :))
Describe the bug Hi, I don't know whether this bugs belong to RxDart or Mocktail. So I put it here first, but if this doesn't belong here, you can close the issue.
So I have Foo class which invoke Future method from mocked Bar. I converted the Future method into Streams, then uses the doOnData operator on the stream. The doOnData causes this error:
If I remove doOnData, everything works just fine. I haven't test this with any other RxDart's operators
To Reproduce Take a look on this code
Simple test
Expected behavior Mocked result shouldn't causes error when used with RxDart's doOnData.
Logs Run
flutter analyze
and attach any output of that command below. If there are any analysis errors, try resolving them before filing this issue.Paste the output of running
flutter doctor -v
here.