GraphConfiguration constructor

const GraphConfiguration({
  1. double repulsionStrength = 1.1,
  2. double attractionStrength = 1.0,
  3. int iterations = 90,
  4. double coolingRate = 0.95,
  5. double minNodeRadius = 12.0,
  6. double maxNodeRadius = 40.0,
  7. Color defaultNodeColor = const Color(0xFF0EA5E9),
  8. Color mainNodeColor = const Color(0xFFFB7185),
  9. Color highlightColor = const Color(0xFFF97373),
  10. Color edgeColor = const Color(0xFF38BDF8),
  11. TextStyle labelStyle = const TextStyle(fontSize: 11, color: Colors.black87, fontWeight: FontWeight.w600),
  12. double minScale = 0.5,
  13. double maxScale = 2.5,
  14. EdgeInsets boundaryMargin = const EdgeInsets.all(40),
  15. int layoutSeed = 42,
})

Implementation

const GraphConfiguration({
  this.repulsionStrength = 1.1,
  this.attractionStrength = 1.0,
  this.iterations = 90,
  this.coolingRate = 0.95,
  this.minNodeRadius = 12.0,
  this.maxNodeRadius = 40.0,
  this.defaultNodeColor = const Color(0xFF0EA5E9),
  this.mainNodeColor = const Color(0xFFFB7185),
  this.highlightColor = const Color(0xFFF97373),
  this.edgeColor = const Color(0xFF38BDF8),
  this.labelStyle = const TextStyle(
    fontSize: 11,
    color: Colors.black87,
    fontWeight: FontWeight.w600,
  ),
  this.minScale = 0.5,
  this.maxScale = 2.5,
  this.boundaryMargin = const EdgeInsets.all(40),
  this.layoutSeed = 42,
});