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 = (() => PbList<T>(check: check!)),
_protoName = protoName {
ArgumentError.checkNotNull(name, 'name');
ArgumentError.checkNotNull(tagNumber, 'tagNumber');
assert(_isRepeated(type));
assert(check != null);
assert(!_isEnum(type) || valueOf != null);
}