I have performed a null check but still I'm getting the below error.
error: The argument type 'String?' can't be assigned to the parameter type 'String'. (argument_type_not_assignable at [sitewalk] lib/modules/floor_plan/widgets/dialog_nested/dialog_nested.dart:122)
Screenshot below for better understanding:
Now if I use the null assertion operator(!)
the error will be gone. But I wanted to know why it's giving an error on the first place?
Is it because if we use multi thread this value can be changed which might cause an error?