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

Unified Diff: sky/sdk/example/widgets/styled_text.dart

Issue 1226113007: Add @override annotation to known overriden methods (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 5 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 | « sky/sdk/example/widgets/spinning_mixed.dart ('k') | sky/sdk/example/widgets/tabs.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/example/widgets/styled_text.dart
diff --git a/sky/sdk/example/widgets/styled_text.dart b/sky/sdk/example/widgets/styled_text.dart
index c2d15922dc47278db12fcaa783c78afd90d4903a..46881bd4aec9f5a83126bb7bb9d05916d3c45909 100644
--- a/sky/sdk/example/widgets/styled_text.dart
+++ b/sky/sdk/example/widgets/styled_text.dart
@@ -49,7 +49,7 @@ HAL: This mission is too important for me to allow you to jeopardize it.''';
decorationColor: const Color(0xFF000000),
decorationStyle: TextDecorationStyle.wavy
);
-
+
Component toStyledText(String name, String text) {
TextStyle lineStyle = (name == "Dave") ? daveStyle : halStyle;
return new StyledText(
@@ -78,6 +78,7 @@ HAL: This mission is too important for me to allow you to jeopardize it.''';
});
}
+ @override
Widget build() {
List<Component> lines = nameLines
.map((nameAndText) => Function.apply(toText, nameAndText))
« no previous file with comments | « sky/sdk/example/widgets/spinning_mixed.dart ('k') | sky/sdk/example/widgets/tabs.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698