TreeLineContainer constructor
const
TreeLineContainer({})
创建树形连线容器
参数
node树节点,用于获取深度和父子关系信息child节点内容 WidgetlineColor当前节点连线颜色,默认为灰色parentLineColor父级连线颜色,默认为浅灰色strokeWidth连线粗细,默认为1.0indent每级缩进距离,必需参数height连线区域高度,必需参数useParentDashedLine父级连线是否使用虚线,默认为true
Implementation
const TreeLineContainer({
super.key,
required this.node,
required this.child,
this.lineColor = Colors.grey,
this.parentLineColor,
this.strokeWidth = 1.0,
required this.indent,
required this.height,
this.useParentDashedLine = true,
});