This commit is contained in:
2026-03-27 21:06:30 +07:00
parent 41b38f177f
commit 176b14c618

View File

@@ -55,7 +55,10 @@ class SmartLight extends SmartDevice {
int brightness = 100; int brightness = 100;
// Using 'super' syntax with named parameters // Using 'super' syntax with named parameters
SmartLight({required super.id, required super.name}); SmartLight({
required super.id,
required super.name
});
// Redirecting to parent named constructors // Redirecting to parent named constructors
SmartLight.office({required String id}) : super.office(id: id); SmartLight.office({required String id}) : super.office(id: id);