LightDimmingDelta constructor

LightDimmingDelta({
  1. required LightDimmingDeltaAction action,
  2. required double? delta,
})

Creates a LightDimmingDelta object.

Implementation

LightDimmingDelta({
  required this.action,
  required double? delta,
})  : assert(delta == null || Validators.isValidPercentage(delta),
          "`delta` must be between 0 and 100 (inclusive)"),
      _originalAction = action,
      _delta = delta,
      _originalDelta = delta;