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
Return the kind of the given element, or ERROR if the element is null. This is a utility method that can reduce the need for null checks in other places.