LightEffects constructor

LightEffects({
  1. required String effect,
  2. required List<String> effectValues,
  3. required String status,
  4. required List<String> statusValues,
})

Creates a LightEffects object.

Implementation

LightEffects({
  required String effect,
  required this.effectValues,
  required this.status,
  required this.statusValues,
})  : assert(effect.isEmpty || Validators.isValidValue(effect, effectValues),
          '`effectValues` does not contain "$effect"'),
      assert(Validators.isValidValue(status, statusValues),
          '`statusValues` does not contain "$status"'),
      _originalEffect = effect,
      _effect = effect;