GraphConfiguration constructor
const
GraphConfiguration({
- double repulsionStrength = 1.1,
- double attractionStrength = 1.0,
- int iterations = 90,
- double coolingRate = 0.95,
- double minNodeRadius = 12.0,
- double maxNodeRadius = 40.0,
- Color defaultNodeColor = const Color(0xFF0EA5E9),
- Color mainNodeColor = const Color(0xFFFB7185),
- Color highlightColor = const Color(0xFFF97373),
- Color edgeColor = const Color(0xFF38BDF8),
- TextStyle labelStyle = const TextStyle(fontSize: 11, color: Colors.black87, fontWeight: FontWeight.w600),
- double minScale = 0.5,
- double maxScale = 2.5,
- EdgeInsets boundaryMargin = const EdgeInsets.all(40),
- 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,
});