Scene.autoDelayOff constructor

Scene.autoDelayOff({
  1. required int brightness,
  2. required Duration timer,
})

Turn on the device to specified brightness and start a timer to turn off the light after specified number of minutes.

Implementation

Scene.autoDelayOff({
  required int brightness,
  required Duration timer,
}) : this(
        sceneClass: const SceneClass.autoDelayOff(),
        val1: brightness,
        val2: timer.inMinutes,
      );