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

Unified Diff: sky/sdk/lib/painting/text_style.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/lib/painting/box_painter.dart ('k') | sky/sdk/lib/rendering/auto_layout.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/painting/text_style.dart
diff --git a/sky/sdk/lib/painting/text_style.dart b/sky/sdk/lib/painting/text_style.dart
index 1ebc558fa7ca2697632c55455662dc443e5c2a27..dfecfd8bce902c6925352d3622e3753669f38be6 100644
--- a/sky/sdk/lib/painting/text_style.dart
+++ b/sky/sdk/lib/painting/text_style.dart
@@ -152,20 +152,22 @@ class TextStyle {
}
}
+ @override
bool operator ==(other) {
if (identical(this, other))
return true;
return other is TextStyle &&
color == other.color &&
- fontFamily == other.fontFamily &&
+ fontFamily == other.fontFamily &&
fontSize == other.fontSize &&
fontWeight == other.fontWeight &&
- textAlign == other.textAlign &&
+ textAlign == other.textAlign &&
decoration == other.decoration &&
decorationColor == other.decorationColor &&
decorationStyle == other.decorationStyle;
}
+ @override
int get hashCode {
// Use Quiver: https://github.com/domokit/mojo/issues/236
int value = 373;
@@ -180,6 +182,7 @@ class TextStyle {
return value;
}
+ @override
String toString([String prefix = '']) {
List<String> result = [];
if (color != null)
« no previous file with comments | « sky/sdk/lib/painting/box_painter.dart ('k') | sky/sdk/lib/rendering/auto_layout.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698