build method

  1. @override
Widget build(
  1. BuildContext context,
  2. List<TreeNodeDepth> depth,
  3. int index
)
override

Implementation

@override
Widget build(BuildContext context, List<TreeNodeDepth> depth, int index) {
  if (index <= 0) {
    return const SizedBox();
  }
  return CustomPaint(
    painter: _PathPainter(
      color: color ?? Theme.of(context).colorScheme.border,
      top: true,
      bottom: true,
    ),
  );
}