MapFieldInfo<K, V> class Null safety

Inheritance

Constructors

MapFieldInfo(String name, int tagNumber, int index, int type, int keyFieldType, int valueFieldType, BuilderInfo mapEntryBuilderInfo, CreateBuilderFunc? valueCreator, {ProtobufEnum? defaultEnumValue, String? protoName})

Properties

check CheckFunc<PbMap<K, V>?>?
Function to verify when adding items to a repeated field.
finalinherited
defaultEnumValue ProtobufEnum?
Default enum value.
finalinherited
enumValues List<ProtobufEnum>?
List of all enum values.
finalinherited
hashCode int
The hash code for this object.
read-onlyinherited
index int?
Index of the field in _FieldSet._values list of this field's message.
finalinherited
isEnum bool
read-onlyinherited
isGroupOrMessage bool
read-onlyinherited
isMapField bool
read-onlyinherited
isRepeated bool
read-onlyinherited
isRequired bool
read-onlyinherited
keyFieldType int
Key type of the map. Per proto2 and proto3 specs, this needs to be an integer type or string, and the type cannot be repeated.
final
makeDefault MakeDefaultFunc?
Constructs the default value of a field.
finalinherited
mapEntryBuilderInfo BuilderInfo
final
name String
Name of this field as the json_name reported by protoc.
finalinherited
protoName String
Name of this field as written in the proto definition.
read-onlyinherited
readonlyDefault → dynamic
Returns a read-only default value for a field. Unlike GeneratedMessage.getField, doesn't create a repeated field.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
subBuilder CreateBuilderFunc?
Creates an empty message or group when decoding a message.
finalinherited
tagNumber int
Field number as specified in the proto definition.
finalinherited
type int
Type of this field. See PbFieldType.
finalinherited
valueCreator CreateBuilderFunc?
Creates a new empty instance of the value type.
final
valueFieldInfo FieldInfo
read-only
valueFieldType int
Value type of the map. Per proto2 and proto3 specs, this can be any type other than map, and the type cannot be repeated.
final
valueOf ValueOfFunc?
Mapping from enum integer values to enum values.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited