update
This commit is contained in:
@@ -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})
|
||||||
|
|||||||
Reference in New Issue
Block a user