summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--dart.html.markdown5
1 files changed, 5 insertions, 0 deletions
diff --git a/dart.html.markdown b/dart.html.markdown
index 3e6ffe09..3b94a254 100644
--- a/dart.html.markdown
+++ b/dart.html.markdown
@@ -659,6 +659,11 @@ example33() {
findVolume33(10,20);//valid
}
+/// 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
/// starts running with what's in its main function.