CompactLayout class

Inheritance

Constructors

CompactLayout({Align2 levelAlign = Align2.start, Direction2 direction = Direction2.ttb, Fun2<TreeLayoutNode, TreeLayoutNode, Offset>? gapFun, Fun2<int, int, num>? levelGapFun, Fun1<TreeLayoutNode, Size>? sizeFun})

Properties

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

Methods

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

Operators

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