Outline class

An node in the outline structure of a file.

Constructors

Outline(Element element, int offset, int length, int codeOffset, int codeLength, {List<Outline>? children})

Properties

children List<Outline>?
The children of the node. The field will be omitted if the node has no children. Children are sorted by offset.
final
codeLength int
The length of the element code.
final
codeOffset int
The offset of the first character of the element code, which is neither documentation, nor annotation.
final
element Element
A description of the element represented by this node.
final
hashCode int
The hash code for this object.
no setterinherited
length int
The length of the element.
final
offset int
The offset of the first character of the element. This is different than the offset in the Element, which is the offset of the name of the element. It can be used, for example, to map locations in the file back to an outline.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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

Static Methods

parse(Map m) Outline