diff --git a/dart_ex_1/ex_2.dart b/dart_ex_1/ex_2.dart index a69ef13..3a2406c 100644 --- a/dart_ex_1/ex_2.dart +++ b/dart_ex_1/ex_2.dart @@ -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})