KatTreeNodeData.from constructor

KatTreeNodeData.from(
  1. KatTreeNodeData other
)

Creates a shallow copy of other.

children and childWidget are copied by reference, not deep-cloned.

Implementation

KatTreeNodeData.from(KatTreeNodeData other)
  : this(
      title: other.title,
      expanded: other.expanded,
      checked: other.checked,
      displayRequired: other.displayRequired,
      allowAdd: other.allowAdd,
      allowRemove: other.allowRemove,
      extra: other.extra,
      children: other.children,
      childWidget: other.childWidget,
      checkBoxCheckColor: other.checkBoxCheckColor,
      checkBoxFillColor: other.checkBoxFillColor,
      backgroundColor: other.backgroundColor,
      customActions: other.customActions,
    );