FlutterOutline class

An node in the Flutter specific outline structure of a file.

Constructors

FlutterOutline(String kind, int offset, int length, int codeOffset, int codeLength, {String? label, Element? dartElement, List<FlutterOutlineAttribute>? attributes, String? className, String? parentAssociationLabel, String? variableName, List<FlutterOutline>? children})

Properties

attributes List<FlutterOutlineAttribute>?
Additional attributes for this node, which might be interesting to display on the client. These attributes are usually arguments for the instance creation or the invocation that created the widget.
final
children List<FlutterOutline>?
The children of the node. The field will be omitted if the node has no children.
final
className String?
If the node creates a new class instance, or a reference to an instance, this field has the name of the class.
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
dartElement Element?
If this node is a Dart element, the description of it; omitted otherwise.
final
hashCode int
The hash code for this object.
no setterinherited
kind String
The kind of the node.
final
label String?
The text label of the node children of the node. It is provided for any FlutterOutlineKind.GENERIC node, where better information is not available.
final
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
parentAssociationLabel String?
A short text description how this node is associated with the parent node. For example "appBar" or "body" in Scaffold.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
variableName String?
If FlutterOutlineKind.VARIABLE, the name of the variable.
final

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) FlutterOutline