NeuronLinksCustomPainter constructor
NeuronLinksCustomPainter({})
Implementation
NeuronLinksCustomPainter({
required this.data,
required this.diameter,
this.lineColor,
this.linkStrokeWidth = 1,
this.linkStrokeWidthEnabled = 1.5,
this.orientation = Axis.horizontal,
}) {
radius = diameter / 2;
maxCount = data.fold(0, (previousValue, element) {
return previousValue < element.length ? element.length : previousValue;
});
}