John Reaper
John Reaper

Reputation: 305

Message error: The argument type 'String?' can't be assigned to the parameter type 'String'

How to fix this? The argument type 'String?' can't be assigned to the parameter type 'String'. enter image description here

Upvotes: 0

Views: 292

Answers (1)

tareq albeesh
tareq albeesh

Reputation: 1861

you just need to add ! at the end of each one of your variables, so Uri.base.queryPrameters['token'] becomes Uri.base.queryPrameters['token']! of course this is assuming that your data is not null, otherwise it would give you a runtime error.

Upvotes: 2

Related Questions