Skip to content

Commit

Permalink
style: replace List() with List.empty()
Browse files Browse the repository at this point in the history
  • Loading branch information
Tienisto committed Feb 2, 2021
1 parent 1e98d65 commit 80b74ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/parser_json.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ void _parseJSONObject(List<String> maps, Map<String, dynamic> curr, Map<String,
destination[key] = TextNode(value);
} else if (value is List) {
// key: [ ...value ]
List<Value> list = List();
List<Value> list = List.empty(growable: true);
_parseJSONArray(maps, value, list, stack);
destination[key] = ListNode(list);
} else {
Expand All @@ -45,7 +45,7 @@ void _parseJSONArray(List<String> maps, List<dynamic> curr, List<Value> destinat
destination.add(TextNode(value));
} else if (value is List) {
// key: [ ...value ]
List<Value> list = List();
List<Value> list = List.empty(growable: true);
_parseJSONArray(maps, value, list, stack);
destination.add(ListNode(list));
} else {
Expand Down

0 comments on commit 80b74ff

Please sign in to comment.