ElementKind class
The kind of elements in the element model.
Clients may not extend, implement or mix-in this class.
- Implemented types
Constructors
- ElementKind(String name, int ordinal, String displayName)
-
Initialize a newly created element kind to have the given
displayName
.const
Properties
- displayName → String
-
The name displayed in the UI for this kind of element.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The name of this element kind.
final
- ordinal → int
-
The ordinal value of the element kind.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
compareTo(
ElementKind other) → int -
Compares this object to another object.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
of(
Element? element) → ElementKind -
Returns the kind of the given
element
, or ERROR if the element isnull
.
Constants
- AUGMENTATION_IMPORT → const ElementKind
- CLASS → const ElementKind
- CLASS_AUGMENTATION → const ElementKind
- COMPILATION_UNIT → const ElementKind
- CONSTRUCTOR → const ElementKind
- DYNAMIC → const ElementKind
- ENUM → const ElementKind
- ERROR → const ElementKind
- EXPORT → const ElementKind
- EXTENSION → const ElementKind
- EXTENSION_TYPE → const ElementKind
- FIELD → const ElementKind
- FUNCTION → const ElementKind
- FUNCTION_TYPE_ALIAS → const ElementKind
- GENERIC_FUNCTION_TYPE → const ElementKind
- GETTER → const ElementKind
- IMPORT → const ElementKind
- LABEL → const ElementKind
- LIBRARY → const ElementKind
- LIBRARY_AUGMENTATION → const ElementKind
- LOCAL_VARIABLE → const ElementKind
- METHOD → const ElementKind
- MIXIN → const ElementKind
- NAME → const ElementKind
- NEVER → const ElementKind
- PARAMETER → const ElementKind
- PART → const ElementKind
- PREFIX → const ElementKind
- RECORD → const ElementKind
- SETTER → const ElementKind
- TOP_LEVEL_VARIABLE → const ElementKind
- TYPE_ALIAS → const ElementKind
- TYPE_PARAMETER → const ElementKind
- UNIVERSE → const ElementKind
-
values
→ const List<
ElementKind>