Meteorite constructor
Meteorite({})
Implementation
Meteorite({
required this.smallestWidth,
required this.starSize,
required this.listener,
required this.random,
required this.color,
required double startX,
required double startY,
}){
_factor = starSize * (doubleInRange(random, 0.1, 2) * 1.9);
_x = startX;
_y = startY;
_trailLength = doubleInRange(random, 20, 180);
debugPrint('METEORITE FACTOR: $_factor');
_trailPaint = Paint()
..style = PaintingStyle.stroke
..strokeWidth = 4.0
..color = color
..style = PaintingStyle.fill;
_paint = Paint()
..isAntiAlias = true
..style = PaintingStyle.stroke
..strokeWidth = 4.0
..color = color
..style = PaintingStyle.fill;
}