FieldInfo<T>.repeated constructor

FieldInfo<T>.repeated(
  1. String name,
  2. int tagNumber,
  3. int? index,
  4. int type,
  5. CheckFunc<T>? check,
  6. CreateBuilderFunc? subBuilder, {
  7. ValueOfFunc? valueOf,
  8. List<ProtobufEnum>? enumValues,
  9. ProtobufEnum? defaultEnumValue,
  10. String? protoName,
})

Implementation

FieldInfo.repeated(
  this.name,
  this.tagNumber,
  this.index,
  this.type,
  this.check,
  this.subBuilder, {
  this.valueOf,
  this.enumValues,
  this.defaultEnumValue,
  String? protoName,
}) : makeDefault = (() => newPbList<T>(check: check)),
     _protoName = protoName,
     assert(PbFieldType.isRepeated(type)),
     assert(!PbFieldType.isEnum(type) || valueOf != null);