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