MapFieldInfo<K, V> constructor
MapFieldInfo<K, V> (
- String name,
- int tagNumber,
- int index,
- int type,
- int keyFieldType,
- int valueFieldType,
- BuilderInfo mapEntryBuilderInfo,
- CreateBuilderFunc? valueCreator, {
- ProtobufEnum? defaultEnumValue,
- String? protoName,
Implementation
MapFieldInfo(
String name,
int tagNumber,
int index,
int type,
this.keyFieldType,
this.valueFieldType,
this.mapEntryBuilderInfo,
this.valueCreator,
{ProtobufEnum? defaultEnumValue,
String? protoName})
: super(name, tagNumber, index, type,
defaultOrMaker: () => PbMap<K, V>(keyFieldType, valueFieldType),
defaultEnumValue: defaultEnumValue,
protoName: protoName) {
ArgumentError.checkNotNull(name, 'name');
ArgumentError.checkNotNull(tagNumber, 'tagNumber');
assert(_isMapField(type));
assert(!_isEnum(type) || valueOf != null);
}