mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-24 10:01:38 +00:00
[dart/en-en] Updated example 33
`var hasValue ??= "default Value";` doesn't work in dart 2.7.0
This commit is contained in:
parent
9e975a8dcf
commit
79561a4f43
@ -694,7 +694,6 @@ example33() {
|
||||
/// Dart has also added feature such as Null aware operators
|
||||
var isBool = true;
|
||||
var hasString = isBool ?? "default String";
|
||||
var hasValue ??= "default Value";
|
||||
|
||||
/// Programs have only one entry point in the main function.
|
||||
/// Nothing is expected to be executed on the outer scope before a program
|
||||
|
Loading…
Reference in New Issue
Block a user