FieldInfo<T> class

An object representing a protobuf message field.

Implementers

Constructors

FieldInfo(String name, int tagNumber, int? index, int type, {dynamic defaultOrMaker, CreateBuilderFunc? subBuilder, ValueOfFunc? valueOf, List<ProtobufEnum>? enumValues, String? protoName})
FieldInfo.dummy(int? index)
FieldInfo.repeated(String name, int tagNumber, int? index, int type, CheckFunc<T>? check, CreateBuilderFunc? subBuilder, {ValueOfFunc? valueOf, List<ProtobufEnum>? enumValues, String? protoName})

Properties

check CheckFunc<T>?
final
enumValues List<ProtobufEnum>?
final
hashCode int
The hash code for this object.
no setterinherited
index int?
final
isEnum bool
no setter
isGroupOrMessage bool
no setter
isMapField bool
no setter
isRepeated bool
no setter
isRequired bool
no setter
makeDefault MakeDefaultFunc?
final
name String
Name of this field as the json_name reported by protoc.
final
protoName String
The name of this field as written in the proto-definition.
final
readonlyDefault → dynamic
Returns a read-only default value for a field. (Unlike getField, doesn't create a repeated field.)
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subBuilder CreateBuilderFunc?
final
tagNumber int
final
type int
final
valueOf ValueOfFunc?
final

Methods

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

Operators

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

Static Methods

findMakeDefault(int type, dynamic defaultOrMaker) MakeDefaultFunc?