mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-11-27 03:34:55 +00:00
implemented light brightness slider
optimised state emit to only emit when change is detected
This commit is contained in:
@ -1,10 +1,10 @@
|
||||
import 'package:syncrow_app/features/devices/model/device_model.dart';
|
||||
|
||||
class LightModel extends DeviceModel {
|
||||
final double brightness;
|
||||
final int color;
|
||||
late double brightness;
|
||||
late int color;
|
||||
|
||||
final int lightingMode;
|
||||
late int lightingMode;
|
||||
|
||||
LightModel({
|
||||
required this.brightness,
|
||||
|
||||
Reference in New Issue
Block a user