Field class

A single field of a message type.


Field.fromJson(Map _json)


cardinality String
The field cardinality. Possible string values are: [...]
read / write
defaultValue String
The string value of the default value of this field. Proto2 syntax only.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
jsonName String
The field JSON name.
read / write
kind String
The field type. Possible string values are: [...]
read / write
name String
The field name.
read / write
number int
The field number.
read / write
oneofIndex int
The index of the field type in Type.oneofs, for message or enumeration types. The first type has index 1; zero means the type is not in the list.
read / write
options List<Option>
The protocol buffer options.
read / write
packed bool
Whether to use alternative packed wire representation.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
typeUrl String
The field type URL, without the scheme, for message or enumeration types. Example: "".
read / write


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toJson() Map<String, Object>
toString() String
Returns a string representation of this object.


operator ==(Object other) bool
The equality operator. [...]