update
This commit is contained in:
@@ -12,7 +12,10 @@ abstract class SmartDevice {
|
||||
static const String brand = "GeminiHome";
|
||||
|
||||
// 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
|
||||
SmartDevice.office({required this.id})
|
||||
|
||||
Reference in New Issue
Block a user