String c = a ?? b;
Warning: Operand of null-aware operation '??' has type 'String' which excludes null.
chapter3/operator_conditional.dart:17
?String c = a ?? b;
?我這里使用這String c = a?? b;? 出現(xiàn)了警告,這是為什么?。?!
Warning: Operand of null-aware operation '??' has type 'String' which excludes null.
chapter3/operator_conditional.dart:17
?String c = a ?? b;
?我這里使用這String c = a?? b;? 出現(xiàn)了警告,這是為什么?。?!
2021-11-24
舉報(bào)
2022-12-09
String 類型改成??dynamic 動(dòng)態(tài)的
2022-09-11
var b;
2022-09-11
var b;
b ??= 10;
2022-09-11
2021-11-30
Warning: Operand of null-aware operation '??=' has type 'int' which excludes null.
? a ??= 10;
一樣報(bào)錯(cuò)