Dahkenangnon / flutter_feathersjs.dart

Real-Time Flutter Apps, Powered by FeathersJS.
https://feathersjs.dah-kenangnon.com/
MIT License
37 stars 12 forks source link

cannot be called on 'Map<dynamic, dynamic>?' because it is potentially null #57

Open palmtown opened 1 year ago

palmtown commented 1 year ago

Describe the bug When building my app with this package, I get the error "cannot be called on 'Map<dynamic, dynamic>?' because it is potentially null." We were able to resolve the issue by changing this._socket.io.options['extraHeaders'] = to this._socket.io.options!['extraHeaders'].

I have attached a screenshot of the error and a screenshot of the fix. Can you implement this fix or a fix you deem necessary to resolve the issue?

To Reproduce Build app with package.

Expected behavior Build successfully.

Screenshots flutter-feathersjs-fix feathersjs-error

Dahkenangnon commented 11 months ago

Hi @palmtown
Thanks this.

It'll be nice to make a PR.

Can you ?

mariocarro commented 4 months ago

There is a PR available that fixes this issue. Can you merge it and release a new version?