diff options
author | Marcel Ribeiro Dantas <ribeirodantasdm@gmail.com> | 2022-06-27 00:28:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-27 00:28:16 +0200 |
commit | 5d133e847846b4c8d436f7a567674c2e1df35a13 (patch) | |
tree | 7ebc7704f02ceef195a8896a80a06ed81cc12585 /dart.html.markdown | |
parent | 27f7f03401ff747a61a912fdf73549b1788b13e1 (diff) | |
parent | 8f28c8021b8ce3cb791861ad19c41e12228d8bcd (diff) |
Merge branch 'master' into patch-1
Diffstat (limited to 'dart.html.markdown')
-rw-r--r-- | dart.html.markdown | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/dart.html.markdown b/dart.html.markdown index b215474a..69e1623d 100644 --- a/dart.html.markdown +++ b/dart.html.markdown @@ -77,13 +77,11 @@ example1() { nested1(); } -/// Anonymous functions don't include a name but can take number of arguments +/// Anonymous functions don't include a name example2() { - //// Explicit return type. - nested1(Function<void> fn) { + nested1(fn) { fn(); } - nested1(() => print("Example2 nested 1")); } @@ -717,6 +715,6 @@ main() { ## Further Reading Dart has a comprehensive web-site. It covers API reference, tutorials, articles and more, including a -useful Try Dart online. -[https://www.dartlang.org](https://www.dartlang.org) -[https://try.dartlang.org](https://try.dartlang.org) +useful DartPad (a cloud-based Dart coding playground). +[https://dart.dev/](https://dart.dev) +[https://dartpad.dev/](https://dartpad.dev) |