FutureOr<List<MapEntry<K, V>>> where(bool Function(K key, V value) test) { var self = this; if (self is Future<SharedMap<K, V>>) { return self.where(test); } else { return self.where(test); } }