EnumGenerator class

Inheritance

Constructors

EnumGenerator.nested(EnumDescriptorProto descriptor, ProtobufContainer parent, Set<String> usedClassNames, int repeatedFieldIndex)
EnumGenerator.topLevel(EnumDescriptorProto descriptor, ProtobufContainer parent, Set<String> usedClassNames, int repeatedFieldIndex)

Properties

binaryDescriptorName String
no setterinherited
classname String?
final
dartNames Map<String, String>
Maps the name of an enum value to the Dart name we will use for it.
final
dottedName String
The fully qualified name with a leading '.'.
no setterinherited
fieldPath List<int>?
See [ProtobufContainer
no setteroverride
fileGen FileGenerator?
The generator of the .pb.dart file defining this entity.
no setteroverride
fileImportPrefix String
no setterinherited
fullName String
final
hashCode int
The hash code for this object.
no setterinherited
package String
no setteroverride
parent ProtobufContainer?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toplevelParent ProtobufContainer?
The top-level parent of this entity, or itself if it is a top-level entity.
no setterinherited

Methods

generate(IndentingWriter out) → void
generateConstants(IndentingWriter out) → void
Writes a Dart constant containing the JSON for the EnumProtoDescriptor.
getJsonConstant(FileGenerator usage) String
Returns a const expression that evaluates to the JSON for this message. usage represents the .pb.dart file where the expression will be used.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register(GenerationContext ctx) → void
Make this enum available as a field type.
toString() String
A string representation of this object.
inherited

Operators

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