FlowerLoader constructor

const FlowerLoader({
  1. Key? key,
  2. Color color = const Color.fromARGB(255, 251, 103, 152),
  3. double size = 40.0,
  4. int duration = 2000,
})

Implementation

const FlowerLoader(
    {super.key,
    this.color = const Color.fromARGB(255, 251, 103, 152),
    this.size = 40.0,
    this.duration = 2000})
    : assert(size > 0 && duration > 0,
          'Size and duration must be greater than 0.');