DurationEffectController constructor
DurationEffectController(
- double duration
Implementation
DurationEffectController(double duration)
: assert(duration >= 0, 'Duration cannot be negative: $duration'),
_duration = duration,
_timer = 0,
super.empty();