NodeViewModelState.fromProperty constructor

  1. {required int treeDepth,
  2. required String key,
  3. required dynamic value,
  4. 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


factory NodeViewModelState.fromProperty({
  required int treeDepth,
  required String key,
  required dynamic value,
  required NodeViewModelState? parent,
}) =>
      key: key,
      value: value,
      treeDepth: treeDepth,
      parent: parent,