flutter_feathersjs.dart icon indicating copy to clipboard operation
flutter_feathersjs.dart copied to clipboard

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

Open palmtown opened this issue 1 year ago • 2 comments

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

palmtown avatar Sep 08 '23 16:09 palmtown

Hi @palmtown
Thanks this.

It'll be nice to make a PR.

Can you ?

Dahkenangnon avatar Sep 29 '23 16:09 Dahkenangnon

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

mariocarro avatar May 04 '24 22:05 mariocarro