TreeVicinity class

The position of a TreeRow in a TreeViewport in relation to other children of the viewport.

This subclass translates the abstract ChildVicinity.xIndex and ChildVicinity.yIndex into terms of row index and depth for ease of use within the context of a TreeView.

Inheritance
Annotations

Constructors

TreeVicinity({required int depth, required int row})
Creates a reference to a TreeRow in a TreeView, with the xIndex and yIndex converted to terms of depth and row, respectively.
const

Properties

depth int
The depth of the TreeRow in the TreeView.
no setter
hashCode int
The hash code for this object.
no setterinherited
row int
The row index of the TreeRow in the TreeView.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
xIndex int
The index of the child in the horizontal axis, relative to neighboring children.
finalinherited
yIndex int
The index of the child in the vertical axis, relative to neighboring children.
finalinherited

Methods

compareTo(ChildVicinity other) int
Compares this object to another object.
inherited
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