ConfettiController constructor

ConfettiController(
  1. {Duration duration: const Duration(seconds: 30)}
)

Implementation

ConfettiController({this.duration = const Duration(seconds: 30)})
    : assert(duration != null &&
          !duration.isNegative &&
          duration.inMicroseconds > 0);