LightTimedEffects constructor

LightTimedEffects({
  1. required String effect,
  2. required List<String> effectValues,
  3. required int duration,
  4. required String status,
  5. required List<String> statusValues,
})

Creates a LightTimedEffects object.

Implementation

LightTimedEffects({
  required String effect,
  required this.effectValues,
  required int duration,
  required this.status,
  required this.statusValues,
})  : assert(duration >= 0, "`duration` must be greater than 0"),
      _originalEffect = effect,
      _effect = effect,
      _originalDuration = duration,
      _duration = duration;