createRepeatedField<T> method
Creates List implementing a mutable repeated field.
Mixins may override this method to change the List type. To ensure
that the protobuf can be encoded correctly, the returned List must
validate all items added to it. This can most easily be done
using the FieldInfo.check
function.
Implementation
List<T> createRepeatedField<T>(int tagNumber, FieldInfo<T> fi) =>
PbList<T>(check: fi.check!);