BaseStar constructor

BaseStar({
  1. required int id,
  2. required double x,
  3. required double y,
  4. required StarCompleteListener starListener,
  5. required StarConstraints starConstraints,
  6. required Random random,
  7. required Color color,
})

Implementation

BaseStar({
  required this.id,
  required this.x,
  required this.y,
  required this.starListener,
  required this.starConstraints,
  required this.random,
  required this.color
}){
  _size = starConstraints.getRandomSize();
  _multiplierFactor = doubleInRange(random, 0.01, 0.09);
  _incrementFactor = doubleInRange(random, 0.1, 0.3);
}