In Dart's sound null safety, what does appending
? to a type like String? mean?- aThe variable is nullable only inside async functions.
- bThe variable is optional and can be omitted entirely from the class.
- cThe variable can hold either a
Stringvalue ornull.✓ - dThe variable must be assigned before the constructor body runs.
Explanation:A
? suffix on a type marks it nullable; without it (e.g. String), the compiler guarantees the variable can never hold null, and this is enforced at compile time.