diff --git a/web/examples/null_aware/nullaware1.dart b/web/examples/null_aware/nullaware1.dart index aead0b4..0af5d99 100644 --- a/web/examples/null_aware/nullaware1.dart +++ b/web/examples/null_aware/nullaware1.dart @@ -12,7 +12,7 @@ main() { print('next appointment: $next'); // the ? operator calls a function IFF the object is not null - String thursday; + String? thursday; var length = thursday?.length; print('length: $length'); diff --git a/web/examples/values/index.md b/web/examples/values/index.md index 990befa..d2ff7bd 100644 --- a/web/examples/values/index.md +++ b/web/examples/values/index.md @@ -10,6 +10,7 @@ template: web/templates/_example.mustache ```bash $ dart values.dart +dartlang 1+1=2 7.0/3.0 =2.3333333333333335 false