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

Unified Diff: pkg/mdv_observe/lib/src/observable_map.dart

Issue 15263004: Adding isNotEmpty property to collection and string. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rename hasElement to isNotEmpty Created 7 years, 7 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
Index: pkg/mdv_observe/lib/src/observable_map.dart
diff --git a/pkg/mdv_observe/lib/src/observable_map.dart b/pkg/mdv_observe/lib/src/observable_map.dart
index 009d6923e4da5e51f9e90874aea9bab7785ea5f8..ce1e48f748995224fdffc5601b4c980e0e47da76 100644
--- a/pkg/mdv_observe/lib/src/observable_map.dart
+++ b/pkg/mdv_observe/lib/src/observable_map.dart
@@ -92,6 +92,8 @@ class ObservableMap<K, V> extends ObservableBase implements Map<K, V> {
bool get isEmpty => length == 0;
+ bool get isNotEmpty => !isEmpty;
+
bool containsValue(V value) => _map.containsValue(value);
bool containsKey(K key) => _map.containsKey(key);
« no previous file with comments | « no previous file | pkg/serialization/lib/src/serialization_helpers.dart » ('j') | sdk/lib/html/dart2js/html_dart2js.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698