TreeLayout<T extends TreeNode<T>> class abstract

Implementers

Constructors

TreeLayout({Fun1<T, Size>? sizeFun, Fun2<T, T, Offset>? gapFun, Fun2<int, int, num>? levelGapFun})

Properties

gapFun ↔ Fun2<T, T, Offset>?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
layoutEnd VoidCallback
no getter
layoutUpdate VoidCallback
no getter
levelGapFun ↔ Fun2<int, int, num>?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sizeFun ↔ Fun1<T, Size>?
getter/setter pair

Methods

doLayout(Context context, T root, num width, num height) → void
getLevelGap(int level1, int level2, [double defaultGap = 24]) double
getNodeGap(T node1, T node2, [Offset defaultGap = const Offset(8, 8)]) Offset
getSize(T node, [Size defaultSize = const Size(8, 8)]) Size
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onLayoutEnd() → void
onLayoutUpdate() → void
toString() String
A string representation of this object.
inherited

Operators

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