ForceSimulation constructor
ForceSimulation({})
Implementation
ForceSimulation({
required this.nodes,
required this.links,
this.alpha = 1.0,
this.alphaMin = 0.001,
this.alphaDecay = 0.0228,
this.alphaTarget = 0,
this.velocityDecay = 0.4,
List<Force>? forces,
this.onTick,
this.onEnd,
}) : forces = forces ?? [] {
_buildNodeMap();
_initializePositions();
}