IndentGuide class
The configuration used to indent and paint optional guides for tree nodes.
This indent guide only indents tree nodes without decorations. Check out the factory constructors of this class to discover the available indent guide decorations.
- Implementers
Constructors
- IndentGuide({double indent = 40.0, EdgeInsetsGeometry padding = EdgeInsets.zero, int maxLevel = largestPositiveInteger})
-
Creates an IndentGuide.
const
- IndentGuide.connectingLines({double indent, EdgeInsetsGeometry padding, Color color, double thickness, double origin, StrokeCap strokeCap, StrokeJoin strokeJoin, PathModifier? pathModifier, bool roundCorners, bool connectBranches})
-
Convenient constructor to create a ConnectingLinesGuide.
constfactory
- IndentGuide.scopingLines({double indent, EdgeInsetsGeometry padding, Color color, double thickness, double origin, StrokeCap strokeCap, StrokeJoin strokeJoin, PathModifier? pathModifier})
-
Convenient constructor to create a ScopingLinesGuide.
constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- indent → double
-
The amount of indent to apply for each level of the tree.
final
- maxLevel → int
-
The maximum indentation level allowed for tree nodes.
final
- padding → EdgeInsetsGeometry
-
The amount of space to inset TreeIndentation.child.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{double? indent, EdgeInsetsGeometry? padding, int? maxLevel}) → IndentGuide - Creates a copy of this indent guide but with the given fields replaced with the new values.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
wrap(
BuildContext context, Widget child, TreeEntry< Object> entry) → Widget -
Method used to wrap
child
in the desired decoration/painting.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override