Index: sdk/lib/html/html_common/css_class_set.dart |
diff --git a/sdk/lib/html/html_common/css_class_set.dart b/sdk/lib/html/html_common/css_class_set.dart |
index dddf69f00accf9dc00569057a694bb0ed51b7c6d..89e2aeb6ed36341aab05d8b09d38af28b38de6a5 100644 |
--- a/sdk/lib/html/html_common/css_class_set.dart |
+++ b/sdk/lib/html/html_common/css_class_set.dart |
@@ -83,6 +83,9 @@ abstract class CssClassSetImpl implements CssClassSet { |
*/ |
bool contains(String value) => readClasses().contains(value); |
+ /** Lookup from the Set interface. Not interesting for a String set. */ |
+ E lookup(String value) => contains(value) ? value : null; |
+ |
/** |
* Add the class [value] to element. |
* |