Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions protobuf/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@
* Fix unknown enum handling in `GeneratedMessage.mergeFromProto3Json` when
the `ignoreUnknownFields` optional argument is `true`. ([#853])
* Add `BuilderInfo` methods to support protoc-plugin 23.0.0. ([#1047])
* Generalize argument type of `PbList.from` from `List<T>` to `Iterable<T>`.
([#1054])

[#742]: https://github.com/google/protobuf.dart/pull/742
[#853]: https://github.com/google/protobuf.dart/pull/853
[#1047]: https://github.com/google/protobuf.dart/pull/1047
[#1054]: https://github.com/google/protobuf.dart/pull/1054

## 4.2.0

Expand Down
4 changes: 2 additions & 2 deletions protobuf/lib/src/protobuf/pb_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ class PbList<E> extends ListBase<E> {
_check = _checkNotNull,
_isReadOnly = true;

PbList.from(List<E> from)
: _wrappedList = List<E>.from(from),
PbList.from(Iterable<E> from)
: _wrappedList = List<E>.of(from),
_check = _checkNotNull;

@override
Expand Down
Loading