SunshineLoader constructor

const SunshineLoader({
  1. Key? key,
  2. double size = 150,
  3. Color color = Colors.red,
  4. double radius = 25,
  5. double speed = 1,
  6. double numRays = 16,
  7. double duration = 1000,
})

Implementation

const SunshineLoader(
    {super.key,
    this.size = 150,
    this.color = Colors.red,
    this.radius = 25,
    this.speed = 1,
    this.numRays = 16,
    this.duration = 1000})
    : assert(
          radius > 0 && size > 0 && duration > 0 && numRays > 0 && speed > 0);