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;? 出現了警告,這是為什么啊?!
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;? 出現了警告,這是為什么啊?!
2021-11-24
舉報
2022-12-09
String 類型改成??dynamic 動態的
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;
一樣報錯