This commit is contained in:
2026-03-27 21:26:37 +07:00
parent 176b14c618
commit c7ec02f5ab

View File

@@ -12,7 +12,10 @@ abstract class SmartDevice {
static const String brand = "GeminiHome"; static const String brand = "GeminiHome";
// 1. Standard Constructor with named parameters // 1. Standard Constructor with named parameters
SmartDevice({required this.id, required String name}) : _name = name; SmartDevice({
required this.id,
required String name
}) : _name = name;
// 2. Named Constructor: Preset for Office use // 2. Named Constructor: Preset for Office use
SmartDevice.office({required this.id}) SmartDevice.office({required this.id})