Skip to content

Commit

Permalink
add dart null aware operator
Browse files Browse the repository at this point in the history
  • Loading branch information
vinceramcesoliveros committed Jan 16, 2020
1 parent c114dd9 commit ab5a195
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dart.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ab5a195

Please sign in to comment.