

when i trying to use API this appeared The argument type ‘String?’ can’t be assigned to the parameter type ‘String’
>Solution :
I think it gives such an error because flutter has a null safety feature. Try Image.asset(space.imageUrl!) or just assign a default value for your variable. Ex: Image.asset(space.imageUrl ?? "imageUrl failed to load")