TreeViewIndentationType class
The style of indentation for TreeViewNodes in a TreeView, as handled by RenderTreeViewport.
By default, the indentation is handled by RenderTreeViewport. Child nodes are offset by the indentation specified by TreeViewIndentationType.value in the cross axis of the viewport. This means the space allotted to the indentation will not be part of the space made available to the Widget returned by TreeView.treeNodeBuilder.
Alternatively, the indentation can be implemented in TreeView.treeNodeBuilder, with the depth of the given tree row accessed by TreeViewNode.depth. This allows for more customization in building tree rows, such as filling the indented area with decorations or ink effects.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → double
-
The number of pixels by which TreeViewNodes will be offset according
to their TreeViewNode.depth.
no setter
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
-
custom(
double value) → TreeViewIndentationType - Configures a custom offset for indenting child nodes in a TreeView.
Constants
- none → const TreeViewIndentationType
- Configures no offsetting of child nodes in a TreeView.
- standard → const TreeViewIndentationType
- The default indentation of child TreeViewNodes in a TreeView.