LightDimming constructor

LightDimming({
  1. required double brightness,
})

Creates a LightDimming object.

Implementation

LightDimming({
  required double brightness,
})  : assert(Validators.isValidPercentage(brightness),
          "`brightness` must be between 0 - 100 (inclusive)"),
      _originalBrightness = brightness,
      _brightness = brightness;