BaseStar constructor
BaseStar({
- required int id,
- required double x,
- required double y,
- required StarCompleteListener starListener,
- required StarConstraints starConstraints,
- required Random random,
- 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);
}