From 176b14c6181206a3e350ca10e44c05e01c3823f6 Mon Sep 17 00:00:00 2001 From: narawat Date: Fri, 27 Mar 2026 21:06:30 +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 53d6de4..a69ef13 100644 --- a/dart_ex_1/ex_2.dart +++ b/dart_ex_1/ex_2.dart @@ -55,7 +55,10 @@ class SmartLight extends SmartDevice { int brightness = 100; // 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 SmartLight.office({required String id}) : super.office(id: id);