NodeViewModelState.fromProperty constructor
NodeViewModelState.fromProperty({
- required int treeDepth,
- required String key,
- required dynamic value,
- required NodeViewModelState? parent,
Build a NodeViewModelState as a property. A property is a single attribute in the json, can be of a type num, String, bool or Null.
Properties always return false
when calling isClass, isArray
and isRoot
Implementation
factory NodeViewModelState.fromProperty({
required int treeDepth,
required String key,
required dynamic value,
required NodeViewModelState? parent,
}) =>
NodeViewModelState._(
key: key,
value: value,
treeDepth: treeDepth,
parent: parent,
);