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, {required CheckFunc<T>? check, CreateBuilderFunc? subBuilder, ValueOfFunc? valueOf, List<ProtobufEnum>? enumValues, String? protoName})

Properties

check → CheckFunc<T>?
Function to verify items when adding 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.
no setteroverride
index → int?
Index of the field in FieldSet._values list of this field's message.
finalinherited
isEnum → bool
no setterinherited
isGroupOrMessage → bool
no setterinherited
isMapField → bool
no setterinherited
isRepeated → bool
no setterinherited
isRequired → bool
no setterinherited
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.
no setterinherited
readonlyDefault → dynamic
Returns a read-only default value for a field. Unlike GeneratedMessage.getField, doesn't create a repeated field.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
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