Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1121)

Unified Diff: src/tests/site/code/webui/web/webui.dart

Issue 22528003: update examples on homepage (Closed) Base URL: https://github.com/dart-lang/dartlang.org.git@master
Patch Set: tweak Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/tests/site/code/webui/pubspec.yaml ('k') | src/tests/site/code/webui/web/webui.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/tests/site/code/webui/web/webui.dart
diff --git a/src/tests/site/code/webui/web/webui.dart b/src/tests/site/code/webui/web/webui.dart
new file mode 100644
index 0000000000000000000000000000000000000000..97f969a95b4ad2f95f579aafe4dfa4d7e2acc804
--- /dev/null
+++ b/src/tests/site/code/webui/web/webui.dart
@@ -0,0 +1,14 @@
+import 'package:web_ui/web_ui.dart';
+
+@observable
+var shout = new Shout();
+
+@observable
+class Shout {
+ String myString = '';
+ String get shouted => myString.toUpperCase();
+ String get palindrome =>
+ myString + myString.split('').reversed.join();
+}
+
+main() {}
« no previous file with comments | « src/tests/site/code/webui/pubspec.yaml ('k') | src/tests/site/code/webui/web/webui.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698