MethodDescriptorBase class
Enhanced information over a FieldElement
Constructors
- MethodDescriptorBase(InterfaceElement classElement, MethodElement methodElement)
Properties
- classElement → InterfaceElement
-
final
- 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
- methodElement → MethodElement
-
final
- 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
- parameterItemType → DartType
-
no setter
- parameterListParameterType → DartType?
-
no setter
- parameterName → String
-
no setter
- parameterType → DartType
-
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
- returnListParameterType → DartType?
-
When the field element is a List, returns the type of List element
no setter
- returnParameterType → DartType
-
When the field element type is a generic, returns the
first type parameter type
no setter
- returnParameterTypeIsEnum → bool
-
When the field element type is a generic, returns
a value indicating whether the first type parameter is an enum
no setter
- returnType → DartType
-
Returns the type of the field element
no setter
- returnTypeIsFuture → bool
-
no setter
- returnTypeName → String
-
Returns the name of the type of the field element
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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