The Staff class has an Email property that is currently throwing a warning. It is marked as non-nullable but does not have a default value.
Explore the possibility of adding the required modifier on this property and ensure it does not break any existing functionality. This approach would be preferred.
We could also use the null forgiving operator if adding required will end up breaking too many things
The
Staff
class has anEmail
property that is currently throwing a warning. It is marked as non-nullable but does not have a default value.Explore the possibility of adding the required modifier on this property and ensure it does not break any existing functionality. This approach would be preferred.
We could also use the null forgiving operator if adding required will end up breaking too many things