Extension<T> class

An object representing an extension field.

Inheritance

Constructors

Extension(String extendee, String name, int tagNumber, int fieldType, {dynamic defaultOrMaker, CreateBuilderFunc? subBuilder, ValueOfFunc? valueOf, List<ProtobufEnum>? enumValues, String? protoName})
Extension.repeated(String extendee, String name, int tagNumber, int fieldType, {CheckFunc<T>? check, CreateBuilderFunc? subBuilder, ValueOfFunc? valueOf, List<ProtobufEnum>? enumValues, String? protoName})

Properties

check CheckFunc<T>?
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
extendee String
final
hashCode int
The hash code for this object.
read-onlyoverride
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
makeDefault MakeDefaultFunc?
Constructs the default value of a field.
finalinherited
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
valueOf ValueOfFunc?
Mapping from enum integer values to enum values.
finalinherited

Methods

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

Operators

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