From c7ec02f5ab2d10a8f1b5939ac92e143f159b186d Mon Sep 17 00:00:00 2001 From: narawat Date: Fri, 27 Mar 2026 21:26:37 +0700 Subject: [PATCH] update --- dart_ex_1/ex_2.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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})