RandomEffectController constructor

RandomEffectController(
  1. DurationEffectController child,
  2. RandomVariable randomGenerator
)

Implementation

RandomEffectController(DurationEffectController child, this.randomGenerator)
    : assert(!child.isInfinite, 'Child cannot be infinite'),
      _child = child,
      super.empty() {
  _initializeDuration();
}