build method

  1. @override
Widget build(
  1. BuildContext context
)
override

Describes the part of the UI represented by this widget.

Implementation

@override
Widget build(BuildContext context) {
  final theme = ThemeScope.of(context);
  final lStyle = _copyStyle(labelStyle ?? theme.bodyMedium)
    ..foreground(theme.onSurface);
  final cStyle = _copyStyle(connectorStyle ?? theme.bodySmall)
    ..foreground(theme.border);

  final effectiveIndent = indentSize < 2 ? 2 : indentSize;
  final lines = <Widget>[];
  _buildLines(nodes, '', true, lines, lStyle, cStyle, theme, effectiveIndent);
  return Column(gap: 0, children: lines);
}