setBrightnessLevelAction method
Future<void>
setBrightnessLevelAction(
- int brightnessLevel, {
- GetDeviceDetailsMethod getDetails = DevicesRepository.getDeviceDetails,
- SendBrightnessFunction sendBrightnessLevel = BrightnessRepository.setBrightnessAction,
Implementation
Future<void> setBrightnessLevelAction(int brightnessLevel,
{GetDeviceDetailsMethod getDetails = DevicesRepository.getDeviceDetails,
SendBrightnessFunction sendBrightnessLevel =
BrightnessRepository.setBrightnessAction}) {
return performAction<int>(brightnessLevel, () => getBrightnessState,
() => sendBrightnessLevel(_request, _deviceId, brightnessLevel),
getDetails: getDetails);
}