ScopingLinesGuide class

The IndentGuide configuration for painting vertical lines at every level of the tree.

Check out the factory constructors of IndentGuide to discover the available indent guide decorations.

Inheritance

Constructors

ScopingLinesGuide({double indent = 40.0, Color color = Colors.grey, double thickness = 2.0, double origin = 0.5})
Creates a ScopingLinesGuide.
const

Properties

color Color
The color to use when painting the lines on the canvas.
finalinherited
hashCode int
The hash code for this object.
no setteroverride
indent double
The amount of indent to apply for each level of the tree.
finalinherited
origin double
Defines where horizontally inside indent to start painting the vertical lines.
finalinherited
originOffset double
The value that results from indent - (indent * origin).
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
thickness double
The width each line should have.
finalinherited

Methods

copyWith({double? indent, Color? color, double? thickness, double? origin}) ScopingLinesGuide
Creates a copy of this indent guide but with the given fields replaced with the new values.
createPaint() Paint
Creates the Paint object that will be used to paint lines.
inherited
createPainter(BuildContext context, TreeEntry<Object> entry) CustomPainter
Subclasses must override this method to provide the CustomPainter that will handle line painting.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
offsetOfLevel(int level) double
Calculates the origin offset of the line drawn for the given level.
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.
inherited

Operators

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