FieldDescriptorBase class

Enhanced information over a FieldElement

Constructors

FieldDescriptorBase(ClassElement classElement, FieldElement fieldElement)

Properties

classElement → ClassElement
final
fieldElement → FieldElement
final
fieldElementType → DartType
Returns the type of the field element
no setter
fieldElementTypeName String
Returns the name of the type of the field element
no setter
hashCode int
The hash code for this object.
no setterinherited
isNullable bool
Returns true when the field is a nullable type
no setter
isRepeated bool
Returns true when the field is a list
no setter
itemType → DartType
Returns the list element type when the field is a list and returns the field element when otherwise
no setter
listParameterType → DartType?
When the field element is a List, returns the type of List element
no setter
name String
The displayName of the field element.
no setter
nullSuffix String
Returns the ? character when the field is a nullable type. Otherwise, returns an empty string
no setter
parameterType → DartType
When the field element type is a generic, returns the first type parameter type
no setter
parameterTypeIsEnum bool
When the field element type is a generic, returns a value indicating whether the first type parameter is an enum
no setter
parameterTypeName String
When the field element type is a generic, returns the firt type parameter type name
no setter
pascalName String
Returns the name of the field using a Pascal Case
no setter
requiredPrefix String
Returns an empty string when the field is a nullable, otherwise returns 'required'
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
typeIsEnum bool
Returns true when the field is an enum
no setter
valueName String
Gets a non-nullable value representation of the field.
no setter

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.
inherited