diff --git a/lib/src/form/src/controller.dart b/lib/src/form/src/controller.dart index 241dd47..295696c 100644 --- a/lib/src/form/src/controller.dart +++ b/lib/src/form/src/controller.dart @@ -131,13 +131,16 @@ class AstromicFormController { final key = parentUuid == null ? '${groupId}_manifest' : '${_getParentKey(groupId, parentUuid)}_manifest'; if (!_nodes.containsKey(key)) { + // 1. Create the node with the specific List type _nodes[key] = AstromicFieldNode>( - [], + [], formatter: (v) => v.length.toString(), - parser: (v) => [], + parser: (v) => [], ); } - return _nodes[key] as ValueNotifier>; + + final node = _nodes[key]; + return (node as dynamic) as ValueNotifier>; } /// Adds a new instance to a dynamic group, generating a UUID and initializing all schema fields.