FieldInfo<T>.repeated constructor
FieldInfo<T>.repeated (
- String name,
- int tagNumber,
- int? index,
- int type,
- CheckFunc<
T> ? check, - CreateBuilderFunc? subBuilder, {
- ValueOfFunc? valueOf,
- List<
ProtobufEnum> ? enumValues, - ProtobufEnum? defaultEnumValue,
- 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);