Element class
Element
{ "kind": ElementKind "name": String "location": optional Location "flags": int "parameters": optional String "returnType": optional String "typeParameters": optional String "aliasedType": optional String }
Clients may not extend, implement or mix-in this class.
Constructors
Properties
- aliasedType ↔ String?
-
If the element is a type alias, this field is the aliased type. Otherwise
this field will not be defined.
getter/setter pair
- flags ↔ int
-
A bit-map containing the following flags:
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- isAbstract → bool
-
no setter
- isConst → bool
-
no setter
- isDeprecated → bool
-
no setter
- isFinal → bool
-
no setter
- isPrivate → bool
-
no setter
- isStatic → bool
-
no setter
- kind ↔ ElementKind
-
The kind of the element.
getter/setter pair
- location ↔ Location?
-
The location of the name in the declaration of the element.
getter/setter pair
- name ↔ String
-
The name of the element. This is typically used as the label in the
outline.
getter/setter pair
- parameters ↔ String?
-
The parameter list for the element. If the element is not a method or
function this field will not be defined. If the element doesn't have
parameters (e.g. getter), this field will not be defined. If the element
has zero parameters, this field will have a value of "()".
getter/setter pair
- returnType ↔ String?
-
The return type of the element. If the element is not a method or
function this field will not be defined. If the element does not have a
declared return type, this field will contain an empty string.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- typeParameters ↔ String?
-
The type parameter list for the element. If the element doesn't have type
parameters, this field will not be defined.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object> - Returns a JSON presentation of the object.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
Constants
- FLAG_ABSTRACT → const int
- FLAG_CONST → const int
- FLAG_DEPRECATED → const int
- FLAG_FINAL → const int
- FLAG_PRIVATE → const int
- FLAG_STATIC → const int