NeuronLinksCustomPainter constructor

NeuronLinksCustomPainter({
  1. required List<List<bool>> data,
  2. required double diameter,
  3. Color? lineColor,
  4. double linkStrokeWidth = 1,
  5. double linkStrokeWidthEnabled = 1.5,
  6. Axis orientation = Axis.horizontal,
})

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;
  });
}