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

Unified Diff: pkg/lookup_map/lib/lookup_map.dart

Issue 2743423009: Run dartfmt on remaining unformated pkg packages (Closed)
Patch Set: Run dartfmt on remaining unformated pkg packages Created 3 years, 9 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 | « pkg/async_helper/lib/async_helper.dart ('k') | pkg/lookup_map/test/lookup_map_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/lookup_map/lib/lookup_map.dart
diff --git a/pkg/lookup_map/lib/lookup_map.dart b/pkg/lookup_map/lib/lookup_map.dart
index 65ac7540aca4702d309a97255f68f66750a6bd46..2e501cd16e6e680559f9b07d3d974edaa60d6d30 100644
--- a/pkg/lookup_map/lib/lookup_map.dart
+++ b/pkg/lookup_map/lib/lookup_map.dart
@@ -60,14 +60,20 @@ class LookupMap<K, V> {
/// instead of a list of key-value pairs.
// TODO(sigmund): make entries a map once we fix TypeImpl.== (issue #17207).
const LookupMap(List entries, [List<LookupMap<K, V>> nestedMaps = const []])
- : _key = null, _value = null, _entries = entries, _nestedMaps = nestedMaps;
+ : _key = null,
+ _value = null,
+ _entries = entries,
+ _nestedMaps = nestedMaps;
/// Creates a lookup map with a single key-value pair.
const LookupMap.pair(K key, V value)
- : _key = key, _value = value, _entries = const [], _nestedMaps = const [];
+ : _key = key,
+ _value = value,
+ _entries = const [],
+ _nestedMaps = const [];
/// Return the data corresponding to [key].
- V operator[](K key) {
+ V operator [](K key) {
var map = _flatMap[this];
if (map == null) {
map = {};
« no previous file with comments | « pkg/async_helper/lib/async_helper.dart ('k') | pkg/lookup_map/test/lookup_map_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698