NodeViewModelState.fromClass constructor
NodeViewModelState.fromClass({
- required int treeDepth,
- required String key,
- required NodeViewModelState? parent,
Build a NodeViewModelState as a class. A class is a JSON node containing a whole class, a class can have multiple children properties, classes or arrays. Its value is always a Map<String, NodeViewModelState> containing the children information.
Implementation
factory NodeViewModelState.fromClass({
required int treeDepth,
required String key,
required NodeViewModelState? parent,
}) =>
NodeViewModelState._(
isClass: true,
key: key,
treeDepth: treeDepth,
parent: parent,
);