1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-01 12:30:48 +02:00

[dart/en-en] Updated example 33

`var hasValue ??= "default Value";` 
doesn't work in dart 2.7.0
This commit is contained in:
Kirill Malev
2020-03-10 19:05:38 +03:00
committed by GitHub
parent 9e975a8dcf
commit 79561a4f43

View File

@@ -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