BubbleOptions constructor

const BubbleOptions({
  1. int bubbleCount = 20,
  2. double minTargetRadius = 15.0,
  3. double maxTargetRadius = 50.0,
  4. double growthRate = 10.0,
  5. double popRate = 150.0,
})

Creates a BubbleOptions given a set of preferred values.

Default values are assigned for arguments that are omitted.

Implementation

const BubbleOptions({
  this.bubbleCount = 20,
  this.minTargetRadius = 15.0,
  this.maxTargetRadius = 50.0,
  this.growthRate = 10.0,
  this.popRate = 150.0,
})  : assert(bubbleCount >= 0),
      assert(minTargetRadius > 0),
      assert(maxTargetRadius > 0),
      assert(growthRate > 0),
      assert(popRate > 0);