Index: sky/engine/core/painting/Color.dart |
diff --git a/sky/engine/core/painting/Color.dart b/sky/engine/core/painting/Color.dart |
index b88e3b45619e84bac46be5ead6773ac2e3a20fcc..5789e40e653c8e75268699279296a0b9548b5c21 100644 |
--- a/sky/engine/core/painting/Color.dart |
+++ b/sky/engine/core/painting/Color.dart |
@@ -15,4 +15,7 @@ class Color { |
((g & 0xff) << 8) | |
((b & 0xff) << 0)); |
+ bool operator ==(other) => other is Color && _value == other._value; |
+ int get hashCode => _value.hashCode; |
+ String toString() => "Color(0x${_value.toRadixString(16).padLeft(8, '0')})"; |
} |