ForceLayout constructor

ForceLayout(
  1. List<Force> forces, {
  2. double alpha = 1,
  3. double alphaMin = 0.001,
  4. double? alphaDecay,
  5. double alphaTarget = 0,
  6. double velocityDecay = 0.6,
})

Implementation

ForceLayout(
  this.forces, {
  double alpha = 1,
  double alphaMin = 0.001,
  double? alphaDecay,
  double alphaTarget = 0,
  double velocityDecay = 0.6,
}) {
  _alpha = alpha;
  _alphaMin = alphaMin;
  _alphaDecay = alphaDecay;
  _alphaTarget = alphaTarget;
  _velocityDecay = velocityDecay;
}