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 attempting to add a value channelId to the data object inside the interceptor. I have tried everything and cannot get this to work. The first if check adds the value to requests that do not have a data object. That works fine. The second if check is supposed to add the value to existing data objects and I cannot get this to work. I have included screenshots of the data print and runtimeType result, including error. I really would appreciate some help. This really seems like something that should be trivial.
Package
dio
Version
5.2.1+1
Operating-System
iOS
Output of
flutter doctor -v
No response
Dart Version
No response
Steps to Reproduce
I am attempting to add a value channelId to the data object inside the interceptor. I have tried everything and cannot get this to work. The first if check adds the value to requests that do not have a data object. That works fine. The second if check is supposed to add the value to existing data objects and I cannot get this to work. I have included screenshots of the data print and runtimeType result, including error. I really would appreciate some help. This really seems like something that should be trivial.
Expected Result
The channelId key/value would be added to the data object.
Actual Result
Resulting error.
The text was updated successfully, but these errors were encountered: