I trying to understand the basics of null-safety in dart
what is the best use for this:
// model
class MyModel {
String? name;
MyModel({this.name})
}
// view-controller
MyModel? response;
// do some async operations here, on success response get a value
if(response!.name == null){
}
if(response?.name == null){
}
// what is the best practice? and what should i use in this case?
// ! or ?