LightTimedEffects constructor
LightTimedEffects({})
Creates a LightTimedEffects object.
Implementation
LightTimedEffects({
required String effect,
required this.effectValues,
required int duration,
required this.status,
required this.statusValues,
}) : assert(Validators.isValidValue(effect, effectValues),
'`effectValues` does not contain "$effect"'),
assert(Validators.isValidValue(status, statusValues),
'`statusValues` does not contain "$status"'),
assert(duration >= 0, "`duration` must be greater than 0"),
_originalEffect = effect,
_effect = effect,
_originalDuration = duration,
_duration = duration;