LitStarfieldContainer constructor

const LitStarfieldContainer({
  1. Key? key,
  2. bool animated = true,
  3. int number = 400,
  4. double velocity = 0.7,
  5. double depth = 0.9,
  6. double scale = 1.5,
  7. Color starColor = Colors.white,
  8. BoxDecoration backgroundDecoration = const BoxDecoration(gradient: LinearGradient(colors: [Color(0xFF283828), Color(0xFF181818)], begin: Alignment.topRight, end: Alignment.bottomLeft)),
})

Implementation

const LitStarfieldContainer({
  Key? key,
  this.animated = true,
  this.number = 400,
  this.velocity = 0.7,
  this.depth = 0.9,
  this.scale = 1.5,
  this.starColor = Colors.white,
  this.backgroundDecoration = const BoxDecoration(
    gradient: LinearGradient(
      colors: [
        Color(0xFF283828),
        Color(0xFF181818),
      ],
      begin: Alignment.topRight,
      end: Alignment.bottomLeft,
    ),
  ),
}) : super(key: key);