Element class

Information about an element (something that can be declared in code).

Implemented types

Constructors

Element(String kind, String name, int flags, {Location? location, String? parameters, String? returnType, String? typeParameters, String? aliasedType})

Properties

aliasedType String?
If the element is a type alias, this field is the aliased type. Otherwise this field will not be defined.
final
flags int
A bit-map containing the following flags:
final
hashCode int
The hash code for this object.
no setterinherited
kind String
The kind of the element.
final
location Location?
The location of the name in the declaration of the element.
final
name String
The name of the element. This is typically used as the label in the outline.
final
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 "()".
final
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.
final
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.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map
override
toString() String
A string representation of this object.
override

Operators

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

Static Methods

parse(Map m) Element