From ab5a1953e77288ca27bd7b4c931d8bb2e79a9966 Mon Sep 17 00:00:00 2001 From: "Vince Ramces V. Oliveros" Date: Thu, 16 Jan 2020 13:52:33 +0800 Subject: add dart null aware operator --- dart.html.markdown | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'dart.html.markdown') 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. -- cgit v1.2.3