By default, null is not a valid value for properties, variables, and parameters.

To allow null, you add a ? to the type of the property, variable, parameter, or return type. So, String becomes String?, Int becomes Int?, and so on.

You can learn more about this in:
Run Edit