SimpleTreeDiagramChart constructor
const
SimpleTreeDiagramChart({
- Key? key,
- required List<
SimpleTreeDiagramData> data, - SimpleTreeDiagramOrientation orientation = SimpleTreeDiagramOrientation.vertical,
- SimpleBarChartStyle style = SimpleBarChartStyle.elegant,
- double height = 280,
- EdgeInsets padding = _defaultPadding,
- List<
Color> ? palette, - Color? nodeColor,
- Color? linkColor,
- Color? activeColor,
- TextStyle? labelStyle,
- TextStyle? valueStyle,
- bool showLabels = true,
- bool showValues = false,
- bool showRoot = true,
- bool showTooltip = true,
- bool showActiveNode = true,
- bool curvedLinks = true,
- int maxDepth = 4,
- double minNodeRadius = 8,
- double maxNodeRadius = 18,
- double linkWidth = 1.6,
- double siblingGap = 18,
- SimpleTreeValueFormatter? valueFormatter,
- SimpleTreeNodeTapCallback? onNodeTap,
- SimpleTreeTooltipBuilder? tooltipBuilder,
- WidgetBuilder? emptyBuilder,
- String? semanticLabel,
- bool excludeFromSemantics = false,
- Duration animationDuration = const Duration(milliseconds: 720),
- Curve animationCurve = Curves.easeOutCubic,
Implementation
const SimpleTreeDiagramChart({
super.key,
required this.data,
this.orientation = SimpleTreeDiagramOrientation.vertical,
this.style = SimpleBarChartStyle.elegant,
this.height = 280,
this.padding = _defaultPadding,
this.palette,
this.nodeColor,
this.linkColor,
this.activeColor,
this.labelStyle,
this.valueStyle,
this.showLabels = true,
this.showValues = false,
this.showRoot = true,
this.showTooltip = true,
this.showActiveNode = true,
this.curvedLinks = true,
this.maxDepth = 4,
this.minNodeRadius = 8,
this.maxNodeRadius = 18,
this.linkWidth = 1.6,
this.siblingGap = 18,
this.valueFormatter,
this.onNodeTap,
this.tooltipBuilder,
this.emptyBuilder,
this.semanticLabel,
this.excludeFromSemantics = false,
this.animationDuration = const Duration(milliseconds: 720),
this.animationCurve = Curves.easeOutCubic,
}) : assert(height > 0),
assert(maxDepth >= 1),
assert(minNodeRadius > 0),
assert(maxNodeRadius >= minNodeRadius),
assert(linkWidth > 0),
assert(siblingGap >= 0);