main() {
String? variable1=stdin.readLineSync();
String? variable2=variable1[0]; // Error: Operator '[]' cannot be called on 'String?' because it is potentially null.
}
Why do I need to add null check when variable2 is already null safe?
I know how to correct this, please explain why is this happening.