TypeHierarchyItem class

TypeHierarchyItem

{ "classElement": Element "displayName": optional String "memberElement": optional Element "superclass": optional int "interfaces": List

Clients may not extend, implement or mix-in this class.

Constructors

TypeHierarchyItem(Element classElement, {String? displayName, Element? memberElement, int? superclass, List<int>? interfaces, List<int>? mixins, List<int>? subclasses})
TypeHierarchyItem.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object? json)
factory

Properties

classElement Element
The class element represented by this item.
getter/setter pair
displayName String?
The name to be displayed for the class. This field will be omitted if the display name is the same as the name of the element. The display name is different if there is additional type information to be displayed, such as type arguments.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
interfaces List<int>
The indexes of the items representing the interfaces implemented by this class. The list will be empty if there are no implemented interfaces.
getter/setter pair
memberElement Element?
The member in the class corresponding to the member on which the hierarchy was requested. This field will be omitted if the hierarchy was not requested for a member or if the class does not have a corresponding member.
getter/setter pair
mixins List<int>
The indexes of the items representing the mixins referenced by this class. The list will be empty if there are no classes mixed in to this class.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subclasses List<int>
The indexes of the items representing the subtypes of this class. The list will be empty if there are no subtypes or if this item represents a supertype of the pivot type.
getter/setter pair
superclass int?
The index of the item representing the superclass of this class. This field will be omitted if this item represents the class Object.
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