call method

FragmentMorphic call([
  1. List? children
])

Produces a FragmentMorphic containing children.

Children follow the same normalization rules as ElementBuilder: strings become TextMorphic, numbers become TextMorphic, Morphic nodes are included as-is, and nested Iterables are flattened.

Implementation

FragmentMorphic call([List<dynamic>? children]) {
  final normalized = _normalizeChildren(children ?? const []);
  return FragmentMorphic(children: normalized, key: key);
}